I'm using the latest version of TeXLive under Ubuntu
(http://packages.ubuntu.com/quantal/tex/texlive) so I did not realize
the version of standalone can be a problem. My version is also 1.1a,
but I do not have any problems if I remove the preview option from
your example. Sounds like there is a sub
All right. I did some more digging. It turns out that the real problem is
that the version of the "standalone" LaTeX package installed on my Debian
system is 1.1a. The easiest fix is to replace the three files
"standalone.cfg", "standalone.cls", and "standalone.sty" with the most
recent version fro
Thanks, Yihui. It turns out that getting rid of the "preview" option is not
enough and one must include "tikz" and "print" to make it work.
Shige
On Sun, Dec 2, 2012 at 11:10 PM, Yihui Xie wrote:
> fig=TRUE is irrelevant here, and knitr does not need fig=TRUE at all
> (plots are automatically
fig=TRUE is irrelevant here, and knitr does not need fig=TRUE at all
(plots are automatically recorded).
The real problem is the [preview] option; remove it and you are all set.
Next time if you have problems with tikzDevice, you can take a look at
the LaTeX log to know what exactly is wrong, e.g
Easiest way: copy and paste the code into Rstudio and hit "compile pdf".
>From the command line, I believe you can do "knit2pdf example.Rnw".
Shige
On Sun, Dec 2, 2012 at 6:12 PM, Duncan Murdoch wrote:
> On 12-12-02 5:42 PM, Shige Song wrote:
>
>> I am having problem making ggplot2, tikzDevice,
On 12-12-02 5:42 PM, Shige Song wrote:
I am having problem making ggplot2, tikzDevice, and knitr working together.
I used a very simple example:
I don't use knitr so I can't really help, but you didn't tell us how you
passed this file to knitr, so maybe nobody can. However, if you were
using
I am having problem making ggplot2, tikzDevice, and knitr working together.
I used a very simple example:
---example.Rnw-
\documentclass[preview]{standalone}
\begin{document}
\begin{figure}
<>=
library(ggplot2)
qplot(displ, hwy, data = mpg, colo
7 matches
Mail list logo