[Rd] R CMD Sweave tmp.tex doesn't create figures with fig=TRUE, include=FALSE
Martin Morgan
mtmorgan at fhcrc.org
Wed Feb 19 03:24:50 CET 2014
With this file
/tmp$ cat tmp.Rnw
\documentclass{article}
\begin{document}
<<figureexample, fig=TRUE, include=FALSE, width=4.2, height=4.6>>=
v = seq(0, 60i, length=1000)
plot(abs(v)*exp(v), type="l", col="Royalblue")
@
\includegraphics{tmp-figureexample}
\end{document}
This command
/tmp$ R --vanilla CMD Sweave tmp.Rnw
Output file: tmp.tex
does not produce a figure
/tmp$ ls *figureexample*
ls: cannot access *figureexample*: No such file or directory
/tmp$ R --version
R Under development (unstable) (2014-02-18 r65029) -- "Unsuffered Consequences"
but this does
/tmp$ R --vanilla CMD Sweave --pdf tmp.Rnw
Output file: tmp.pdf
and so did
$ Rrel --version|head -n 1
R version 3.0.2 Patched (2014-01-02 r64626) -- "Frisbee Sailing"
Martin
--
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
More information about the R-devel
mailing list