alias in .Rd and bundles
3
0
Entering edit mode
@sandrine-dudoit-16
Last seen 10.2 years ago
Hello, I have a couple of R questions. 1. When we have several aliases in a .Rd file is there a way to have only the first alias listed in the index for the package (00Index.html) I am asking this especially in the context of the marrayClasses package for the .Rd files for the classes. The index now lists both marrayLayout and marrayLayout-class. We added the alias marrayLayout because it's easier for people to use ? marrayLayout than ? marrayLayout- class. 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.? Thanks for your help. Sandrine ---------------------------------------------------------------------- --------- Sandrine Dudoit, Ph.D. E-mail: sandrine@stat.berkeley.edu Assistant Professor Tel: (510) 643-1108 Division of Biostatistics Fax: (510) 643-5163 School of Public Health http://www.stat.berkeley.edu/~sandrine University of California, Berkeley 140 Earl Warren Hall, #7360 Berkeley, CA 94720-7360 ---------------------------------------------------------------------- ---------
• 1.2k views
ADD COMMENT
0
Entering edit mode
@anthony-rossini-10
Last seen 10.2 years ago
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? best, -tony A.J. Rossini Rsrch Asst Professor of Biostatistics rossini@u.washington.edu http://software.biostat.washington.edu/ Biostatistics/Univ. of Washington 206-543-1044 (3286=fax) (Thursdays) HIV Vaccine Trials Network/FHCRC 206-667-7025 (4812=fax) (M/Tu/W) (Friday location is generally unknown).
ADD COMMENT
0
Entering edit mode
rgentleman ★ 5.5k
@rgentleman-7725
Last seen 9.6 years ago
United States
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. For those of us working off of cvs there is an install target for the makefile in madman/Rpacks... > > best, > -tony > > > > A.J. Rossini Rsrch Asst Professor of Biostatistics > rossini@u.washington.edu http://software.biostat.washington.edu/ > Biostatistics/Univ. of Washington 206-543-1044 (3286=fax) (Thursdays) > HIV Vaccine Trials Network/FHCRC 206-667-7025 (4812=fax) (M/Tu/W) > (Friday location is generally unknown). > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > http://www.stat.math.ethz.ch/mailman/listinfo/bioconductor -- +--------------------------------------------------------------------- ------+ | Robert Gentleman phone : (617) 632-5250 | | Associate Professor fax: (617) 632-2444 | | Department of Biostatistics office: M1B28 | Harvard School of Public Health email: rgentlem@jimmy.dfci.harvard.edu | +--------------------------------------------------------------------- ------+
ADD COMMENT
0
Entering edit mode
>>>>> 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
ADD REPLY
0
Entering edit mode
Kurt Hornik ▴ 50
@kurt-hornik-17
Last seen 10.2 years ago
>>>>> Sandrine Dudoit writes: > Hello, > I have a couple of R questions. > 1. When we have several aliases in a .Rd file is there a way to have only > the first alias listed in the index for the package (00Index.html) > I am asking this especially in the context of the marrayClasses package > for the .Rd files for the classes. The index now lists both > marrayLayout and marrayLayout-class. We added the alias marrayLayout because > it's easier for people to use ? marrayLayout than ? > marrayLayout-class. Sandrine, That's a limitation of the current Rd system: the INDEX file is generated from the info in the *name* and title slots of the Rd file. [This was not too bad in the old days but is really braindead now that we even say that the name is just an id which must be unique across the Rd objs in the package]. The \alias info is currently not used. R 1.6 should have a 3-arg \index command along the lines of \index{TOPIC}{TYPE}{DESCRIPTION} or \index[TYPE]{TOPIC}{DESCRIPTION} the latter being my pref, which will allow us to have a real index system. For the time being, all you can do is split into small pieces, or write good vignettes so that no one needs to look at the INDEX files. -k
ADD COMMENT
0
Entering edit mode
Hi Kurt, Thanks for the reply. > > 1. When we have several aliases in a .Rd file is there a way to have only > > the first alias listed in the index for the package (00Index.html) > > I am asking this especially in the context of the marrayClasses package > > for the .Rd files for the classes. The index now lists both > > marrayLayout and marrayLayout-class. We added the alias marrayLayout because > > it's easier for people to use ? marrayLayout than ? > > marrayLayout-class. > > Sandrine, > > That's a limitation of the current Rd system: the INDEX file is > generated from the info in the *name* and title slots of the Rd file. > [This was not too bad in the old days but is really braindead now that > we even say that the name is just an id which must be unique across the > Rd objs in the package]. The \alias info is currently not used. > > R 1.6 should have a 3-arg \index command along the lines of > > \index{TOPIC}{TYPE}{DESCRIPTION} > or > \index[TYPE]{TOPIC}{DESCRIPTION} > > the latter being my pref, which will allow us to have a real index > system. For the time being, all you can do is split into small pieces, > or write good vignettes so that no one needs to look at the INDEX > files. I meant the html index in /html/00Index.html. This ones seems to be using the alias and adds an entry for each aliased name. Best, Sandrine
ADD REPLY

Login before adding your answer.

Traffic: 479 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6