Closed renlund closed 9 years ago
I confirm this is reproducible
Initial analysis indicates that it would be viable to use knitr()
to parse Rnw
files instead of SWeave()
The new version contains better error handling when using SWeave()
- still the default.
In addition, you can now use the argument scan.rnw.with.knitr
to force checkpoint()
to use knitr::knit()
to scan .Rnw
files.
That sounds excellent. Thank you.
A .rnw-file like this (call it "test.rnw") :
is fine for
knitr::knit("test.rnw")
. (In the "foo"-chunk a variablex
is defined to determine wether the "bar"-chunk should be evaluated.) However,checkpoint::checkpoint("test.rnw")
fails since it is unable to parse this file - which I assume is due toutils::Stangle("test.rnw")
also failing.Would it be perhaps be possible to get the option to use
knitr::purl
for parsing the .rnw files instead?knitr::purl("test.rnw")
does produce an output.