From simon.urbanek at r-project.org  Sun Jan 31 19:07:15 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Sun, 31 Jan 2010 13:07:15 -0500
Subject: [Rd] Stop packages and datasets to be loaded on startup.
In-Reply-To: <4B65C068.6090002@citycable.ch>
References: <4B645975.5040101@citycable.ch>
	<AC6F0479-121D-4070-ABE4-303FAB6AA7B7@r-project.org>
	<4B65C068.6090002@citycable.ch>
Message-ID: <765F3AC5-BDA1-4AA1-A3E7-CC97E3252345@r-project.org>


On Jan 31, 2010, at 12:39 PM, Guillaume Yziquel wrote:

> Simon Urbanek a ?crit :
>>> 
>>> So I gather that just setting R_DEFAULT_PACKAGES to NULL should be OK. But then, what is the rather complicated stuff in the autoload() function in littler.c for?
>>> 
>>> And concerning datasets, how do you avoid loading them?
>>> 
>> Setting R_DEFAULT_PACKAGES to NULL makes sure that default packages are not loaded. Note that "datasets" are not loaded at all -- you can load the datasets package which will make them available, but they are not really "loaded". The minimal setup is simply
>> R_DEFAULT_PACKAGES=NULL R --vanilla
>> However, it's your responsibility to load any packages that your code needs in that case.
>> Cheers,
>> Simon
> 
> OK. Thanks. Just one more question concerning package base. It seems that setting R_DEFAULT_PACKAGES to NULL doesn't remove the base package. Is the base package removable?
> 

No, because base is R itself.

Cheers,
Simon



[Rd] Stop packages and datasets to be loaded on startup.
Simon Urbanek