Re: [Rd] warning from install.packages()

From: Ben Bolker <bolker_at_ufl.edu>
Date: Tue, 01 Jun 2010 12:40:10 +0000 (UTC)

> On 25/05/10 23:25 PM, "Ben Bolker" <bolker <at> ufl.edu> wrote:
> Just curious: is there a particular reason why install.packages()
> gives a warning in normal use when 'lib' is not specified (e.g. argument
> 'lib' is missing: using '/usr/local/lib/R/site-library' )?

  Bump.   

>From install.packages in utils/R/packages2.R:

      if(missing(lib) || is.null(lib)) {
        lib <- .libPaths()[1L]
        if(length(.libPaths()) > 1L)
            warning(gettextf("argument 'lib' is missing: using '%s'", lib),
                    immediate. = TRUE, domain = NA)
    }

  If I were patching this I would simply comment out this whole test (rather than making a message() √† la Jari Oksanen) -- it seems to make the most sense to execute the documented behavior silently ...

  I will submit this as a wishlist item shortly if no-one complains.

   Ben Bolker



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 01 Jun 2010 - 12:44:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jun 2010 - 17:50:56 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive