[R] Re: packaging a package addon

Ross Boylan ross at biostat.ucsf.edu
Fri Oct 31 22:14:04 CET 2003


On Fri, 2003-10-31 at 06:41, A.J. Rossini wrote:
> Ross Boylan <ross at biostat.ucsf.edu> writes:
> >
> > I also added library("survival") to my .First.lib.  Is library, rather
> > than require, the right choice here?  I want it to fail if survival
> > doesn't load.
> 
> test the results from require, something like: 
> 
>      if (!require("survival")) stop("can't load survival")
Doesn't using library do about the same thing?  What's the advantage of
this, clearer diagnostics?




More information about the R-help mailing list