[ESS] Alternate Sweave drivers
Steen Hoyer
j.s.hoyer at wustl.edu
Wed Dec 5 01:45:39 CET 2012
I'm looking for a clean way to use Sweave drivers from R packages such as ascii, R2HTML, cacheSweave, and weaver. There was some talk in the knitr thread about making weaving/tangling less backend dependent [1], and I was wondering if there are specific plans for this.
In particular, it seems like it should be easy to modify ess-swv-run-in-R to use any driver by
1. creating a variable like ess-swv-driver
2. require()ing the appropriate R package at a logical place.
3. adding another conditional to the step that concatenates the command arguments
...
(cmd-args (concat "\"" rnw-file "\""
(if (string-match "^utf-8" buf-coding)
", encoding = \"utf-8\"")))
...
I've tried to make these modifications, but haven't succeeded so far. I can make alternate versions of ess-swv-run-in-R as suggested on this list before [2], but I'm afraid that future versions of ESS will break them.
Thanks for your consideration.
Steen Hoyer
[1] https://stat.ethz.ch/pipermail/ess-help/2012-October/008247.html
[2] https://stat.ethz.ch/pipermail/ess-help/2010-March/005964.html
More information about the ESS-help
mailing list