Skip to content
Prev 47038 / 63424 Next

interrupting Sweave leaves open sink connection

On 13-10-22 10:45 PM, Duncan Murdoch wrote:
It should now be fixed in R-devel and R-patched.

Likely the reason this went unfixed for so long is that the more common 
way to use Sweave is in a separate R session.  If you run it in the 
current R session, the results aren't necessarily reproducible, because 
they may depend on whatever variables you have in your workspace.  It's 
better to run it on its own.  One way is to use the command line version

R CMD Sweave ...

but it can also be done by piping specific commands into an R session. 
I do it that way, because it lets me run some project management code, 
and lets me patch the Synctex information so it points to the .Rnw file.

Duncan Murdoch