igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] igraph in R/Rscript error


From: Michael Krein
Subject: Re: [igraph] igraph in R/Rscript error
Date: Mon, 26 Oct 2009 08:31:20 -0400

Aha!  I knew it would be something simple.  :)

Problem solved!

Many thanks Tamas,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Michael Krein
Breneman Research Group
Rensselaer Exploratory Center for Cheminformatics Research
Rensselaer Polytechnic Institute
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


On Oct 26, 2009, at 5:34 AM, Tamas Nepusz wrote:

Hi Michael,

Rscript does not load all the packages that R loads at startup by
default. In particular, the "methods" package is not loaded by default
since it takes about 60% of the startup time [1]. The "is" function is
defined in the "methods" package, so you'll have to load that:

$ Rscript --default-packages=methods test.R

Another possibility is to set the R_DEFAULT_PACKAGES environment
variable:

$ export R_DEFAULT_PACKAGES=methods
$ Rscript test.R

[1] http://finzi.psych.upenn.edu/R/library/utils/html/Rscript.html

Best,
--
Tamas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]