Skip to content

Commit

Permalink
add cache=FALSE for setup according to the suggestion of #105
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 25, 2012
1 parent 77d0668 commit ec70382
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion inst/examples/knitr-minimal.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

% \SweaveOpts{fig.path=figure/minimal-,fig.align=center,fig.show=hold}

<<setup,echo=FALSE,results=hide,message=FALSE>>=
<<setup,echo=FALSE,results=hide,message=FALSE,cache=FALSE>>=
options(replace.assign=TRUE,width=90)
knit_hooks$set(par=function(before, options, envir){if (before) par(mar=c(4,4,.1,.1),cex.lab=.95,cex.axis=.9,mgp=c(2,.7,0),tcl=-.3,las=1)})
@
Expand Down
16 changes: 9 additions & 7 deletions inst/examples/knitr-minimal.lyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 420
\lyxformat 424
\begin_document
\begin_header
\textclass article
Expand Down Expand Up @@ -48,12 +48,14 @@ knitr
\pdf_quoted_options "pdfstartview={XYZ null null 1}"
\papersize default
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\use_undertilde 1
\use_package amsmath 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 0
\use_package mhchem 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type numerical
\biblio_style plainnat
\use_bibtopic false
\use_indices false
Expand Down Expand Up @@ -108,7 +110,7 @@ status open

\begin_layout Plain Layout

<<setup,echo=FALSE,results=hide,message=FALSE>>=
<<setup,echo=FALSE,results=hide,message=FALSE,cache=FALSE>>=
\end_layout

\begin_layout Plain Layout
Expand Down

0 comments on commit ec70382

Please sign in to comment.