[Rd] Package installation
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Jun 10 18:53:01 CEST 2004
On Thu, 10 Jun 2004, Liaw, Andy wrote:
> > From: Toralf Kirsten
> >
> > Hi Uwe,
> > thanks for your fast response.
> >
> > The content of the file izbi/R/First.lib.R of the source
> > package is as
> > follows:
> > *************
> > .First.lib <- function(libname, pkgname) {
> > library.dynam("izbi", package = pkgname, lib.loc = libname)
> > data(COLS, package=izbi)
> > data(ROWS, package=izbi)
> > }
> > *************
> >
> > The check command also fails (see below).
> > Any hints?
>
> Starting in R-1.9.0, I believe, you need to quote the package name in
> data().
Yes if it a string and not a variable, and since the package might get
renamed, I think you really want
.First.lib <- function(libname, pkgname) {
library.dynam("izbi", package = pkgname, lib.loc = libname)
data(COLS, package=pkgname)
data(ROWS, package=pkgname)
}
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list