Skip to content
Prev 311305 / 398506 Next

Error in Sweave but not underlying script

On 19/11/2012 3:27 PM, Bush, Daniel P. DPI wrote:
Here's another possibility:  your Sweave session may not be setting the 
same option defaults in startup code as your regular session. This one 
just bit me:  I normally work with options(stringsAsFactors = FALSE), 
because I don't like to have strings automatically converted to 
factors.  However, this option wasn't set when running Sweave externally.

Duncan Murdoch