Permalink
Browse files

run knit-all.R

  • Loading branch information...
1 parent d6c1cc9 commit d3c198322d2e9cf601e7e7536efed3e6836accab @yihui committed Aug 23, 2012
@@ -1,7 +1,6 @@
%% LyX 2.0.4 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt]{beamer}
-\usepackage[T1]{fontenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{url}
@@ -1,7 +1,6 @@
%% LyX 2.0.4 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[nohyper,justified]{tufte-handout}
-\usepackage[T1]{fontenc}
\usepackage{url}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,
@@ -2,7 +2,6 @@
%% Do not edit unless you really know what you are doing.
\documentclass{article}
\usepackage[sc]{mathpazo}
-\usepackage[T1]{fontenc}
\usepackage{listings}
\lstset{language=R}
\usepackage{geometry}
@@ -4,7 +4,6 @@
\usepackage[sc]{mathpazo}
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
-\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
\setcounter{secnumdepth}{2}
@@ -245,7 +244,7 @@ for(k in 1:10){j=cos(sin(k)*k^2)+3;print(j-5)}
for(k in 1:10){j=cos(sin(k)*k^2)+3;print(j-5)}
@
-Note \texttt{=} is replaced by \texttt{<-} because \texttt{options('replace.assign')}
+Note \texttt{=} is replaced by \texttt{\textless{}-} because \texttt{options('replace.assign')}
was set to be \texttt{TRUE} in this document; see the documentation
of \emph{tidy.source()} in \textbf{formatR} for details.
@@ -522,17 +521,18 @@ the latter chunk is said to depend on the previous one. The function
find out all global objects in a chunk, and according to its documentation,
the result is an approximation. Global objects roughly mean the ones
which are not created locally, e.g. in the expression \texttt{function()
-\{y <- x\}}, \texttt{x} should be a global object, whereas \texttt{y}
-is local. Meanwhile, we also need to save the list of objects created
-in each cached chunk, so that we can compare them to the global objects
-in latter chunks. For example, if chunk A created an object \texttt{x}
-and chunk B uses this object, chunk B must depend on A, i.e. whenever
-A changes, B must also be updated. When \texttt{autodep=TRUE}, \textbf{knitr}
-will write out the names of objects created in a cached chunk as well
-as those global objects in two files named \textsf{\_\_objects} and
-\textsf{\_\_globals} respectively; later we can use the function \emph{dep\_auto()}
-to analyze the object names to figure out the dependencies automatically.
-See \url{http://yihui.name/knitr/demo/cache/} for examples.
+\{y \textless{}- x\}}, \texttt{x} should be a global object, whereas
+\texttt{y} is local. Meanwhile, we also need to save the list of objects
+created in each cached chunk, so that we can compare them to the global
+objects in latter chunks. For example, if chunk A created an object
+\texttt{x} and chunk B uses this object, chunk B must depend on A,
+i.e. whenever A changes, B must also be updated. When \texttt{autodep=TRUE},
+\textbf{knitr} will write out the names of objects created in a cached
+chunk as well as those global objects in two files named \textsf{\_\_objects}
+and \textsf{\_\_globals} respectively; later we can use the function
+\emph{dep\_auto()} to analyze the object names to figure out the dependencies
+automatically. See \url{http://yihui.name/knitr/demo/cache/} for
+examples.
Yet another way to specify dependencies is \emph{dep\_prev()}: this
is a conservative approach which sets the dependencies so that a cached
@@ -2,7 +2,6 @@
%% Do not edit unless you really know what you are doing.
\documentclass{article}
\usepackage[sc]{mathpazo}
-\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
\setcounter{secnumdepth}{2}
@@ -75,7 +75,7 @@ @Manual{R-MASS
title = {MASS: Support Functions and Datasets for Venables and Ripley's MASS},
author = {Brian Ripley},
year = {2012},
- note = {R package version 7.3-19},
+ note = {R package version 7.3-20},
url = {http://CRAN.R-project.org/package=MASS},
}
@Manual{R-pgfSweave,
@@ -89,7 +89,7 @@ @Manual{R-rgl
title = {rgl: 3D visualization device system (OpenGL)},
author = {Daniel Adler and Duncan Murdoch},
year = {2012},
- note = {R package version 0.92.880},
+ note = {R package version 0.92.892},
url = {http://CRAN.R-project.org/package=rgl},
}
@Manual{R-tikzDevice,
@@ -0,0 +1 @@
+See https://github.com/yihui/knitr-examples/blob/master/009-slides.Rmd
@@ -1,7 +1,6 @@
%% LyX 2.0.4 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass{article}
-\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{url}
@@ -46,7 +45,7 @@ in the output;
\item set \texttt{out.width} to be less than half of the linewidth if you
do not want the sub figures to exceed the page margin;
\item most importantly, leave a blank line in the beginning of the subfloat
-environment, so that \texttt{<\textcompwordmark{}<>\textcompwordmark{}>=}
+environment, so that \texttt{\textless{}\textless{}\textgreater{}\textgreater{}=}
starts in a new line and \textbf{knitr} can recognize it;
\end{enumerate}
Figure \ref{fig:knitr-subfloat} is an example.
@@ -1,7 +1,6 @@
%% LyX 2.0.4 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[nohyper,justified]{tufte-handout}
-\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{url}
@@ -2,7 +2,6 @@
%% Do not edit unless you really know what you are doing.
\documentclass[twocolumn]{article}
\usepackage[sc]{mathpazo}
-\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm}
\setcounter{secnumdepth}{2}

0 comments on commit d3c1983

Please sign in to comment.