The following minimal example Sweave file compiled properly in RStudio.

\documentclass{article}

\begin{document}

Example text outside R code here; we know the value of pi is \Sexpr{pi}.
<<my-label, eval=TRUE, dev='tikz'>>=
set.seed(1213)  # for reproducibility
x = cumsum(rnorm(100))
mean(x)  # mean of x
plot(x, type = 'l')  # Brownian motion
@
Other text outside R code here.

\end{document}

Result:  junk.pdf <http://r.789695.n4.nabble.com/file/n4672526/junk.pdf>  



--
View this message in context: 
http://r.789695.n4.nabble.com/tikzDevice-tp4672523p4672526.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to