[BioC] alias in .Rd and bundles

Kurt Hornik Kurt.Hornik@wu-wien.ac.at
Wed, 3 Apr 2002 19:19:13 +0200


>>>>> Robert Gentleman writes:

> On Tue, Apr 02, 2002 at 12:48:53PM -0800, Anthony Rossini wrote:
>> On Tue, 2 Apr 2002, Sandrine Dudoit wrote:
>> 
>> 
>> > 2. I've installed the bundle Bioconductor. Is there a way to load all
>> > packages with one command in R, instead of going library(package1),
>> > library(package2), etc.?
>> 
>> Do we need a dummy library, Bioconductor, with 
>> 
>> .First.lib <- function() {
>> while (library in bioconductor.libraries)
>> require(library)
>> }
>> 
>> It appears that there are numerous subsets that might be of interest, and might not be worth power-loading everything (but it might be worth some kind of "topic/activity" based loader of the above, i.e. Bioconductor.topic("cDNA"), Bioconductor.topic("affy"), or similar activity-sets.
>> 
>> Comments?


>   These all seem reasonable, don't forget that if a package has a
>   requires for something else that something else gets loaded with the
>   package.

Btw, note that require does *not* throw an error in case a 'feature'
(which really means a package) is not found: in case the required
package is critical one should check the return value.  e.g.

	for(pkg in BioConductorPackages) {
          if(!require(pkg)) stop(......)
	}

-k