Skip to content

Cannot use setClass() in Rscript

3 messages · Jonathan Callahan, Martin Morgan

#
On 02/15/2012 12:33 PM, Jonathan Callahan wrote:
Hi --

Check out the difference between

   R --vanilla -e "sessionInfo()"

and

   Rscript --vanilla -e "sessionInfo()"

Rscript does not load the 'methods' package, so add require(methods) to 
your script.

Martin