From mtmorgan at fhcrc.org  Wed Feb 19 03:24:50 2014
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Tue, 18 Feb 2014 18:24:50 -0800
Subject: [Rd] R CMD Sweave tmp.tex doesn't create figures with fig=TRUE,
	include=FALSE
Message-ID: <530415F2.5020608@fhcrc.org>

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



[Rd] R CMD Sweave tmp.tex doesn't create figures with fig=TRUE, include=FALSE
Martin Morgan