Sweave
for Rnw exercises or knit
for Rmd exercises.
xweave(file, quiet = TRUE, encoding = NULL, envir = new.env(), pdf = TRUE, png = FALSE, height = 6, width = 6, resolution = 100, ...)
knit
.Sweave
or opts_chunk
, respectively. In the latter case:
pdf
/png
are mapped to dev
; height
/width
are mapped to fig.height
/fig.width
; and resolution
is mapped to dpi
.file
has an .Rnw
or .Rmd
suffix,
either Sweave
or knit
is called for
weaving the file. If png = TRUE
when calling Sweave
, then
the resulting includegraphics statements are supplemented with the .png
suffix of the corresponding graphics.
Sweave
,
knit