r - Is there a way to define all Sweave options in code? -
quoting pgfsweave manual:
how set subdirectories gures , caches? straight out of sweave , cachesweave manuals (nothing new here). figures subdirectory use prefix.string option:
\sweaveopts{prefix.string=figs/fig}
for caching subdirectory use code chunk @ beginning or document like:
<<setup,echo=f>>= setcachedir("cache") @
i find annoying 2 options in different places, r code vs. latex directive. there way set prefix.string
option r code, perhaps before sweave
called?
sweave options can set globally either using \sweaveopts
or in call sweave
, this:
sweave("tmp.rnw", prefix.string="figs/figs")
Comments
Post a Comment