Hi, Is is possible to embed inside an R script, the name of the default packages to be loaded when the script is invoked with Rscript. I know about the --default-packages argument, but I was wondering if there was a mechanism to embed this information within the script itself Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/xMdt : update on the ant package |- http://tr.im/xHLs : R capable version of ant `- http://tr.im/xHiZ : Tip: get java home from R with rJava
On 03/09/2009 9:53 AM, Romain Francois wrote:> Hi, > > Is is possible to embed inside an R script, the name of the default > packages to be loaded when the script is invoked with Rscript. > > I know about the --default-packages argument, but I was wondering if > there was a mechanism to embed this information within the script itselfI don't understand what you'd want here that you don't get with attach() or require(). Why does it matter if they are default? Duncan Murdoch