## Not run: vignette("pgfSweave")
## Not run:
# library(pgfSweave)
# oldcwd <- getwd()
# dir <- tempdir()
# setwd(dir)
# file.copy(system.file("example","pgfSweave-example.Rnw", package = "pgfSweave"),dir)
# file <- file.path(dir,"pgfSweave-example.Rnw")
# pgfSweave(file,compile.tex=FALSE)
# setwd(oldcwd)
# ## End(Not run)
## Not run:
# ## Normally to compile to PDF by
# # pgfSweave("pgfSweave-example.Rnw")
# # Default as of version 1.2 is pdf=T
# #
# # or use
# #
# # R CMD pgfsweave pgfSweave-example.Rnw
# ## From the command line which calls texi2dvi (default uses pdflatex)
# #
# unix
# ## NOTE: LaTeX may not be included in your path by default when using the R
# ## GUI, please see the FAQ in the pgfSweave vignette if your latex or pdflatex
# ## are not found.
# windows
# ## WINDOWS USERS: This has only been tested with MiKTeX
#
# ## Use pgfSweave outside of R with the script provided in the pgfSweave exec/ directory
# ## End(Not run)
Run the code above in your browser using DataCamp Workspace