From hpages at fhcrc.org  Thu Jun  8 21:08:58 2006
From: hpages at fhcrc.org (Herve Pages)
Date: Thu, 08 Jun 2006 12:08:58 -0700
Subject: [Rd] install.packages() does not warn when 'lib' arg is missing on
 Linux or Windows
Message-ID: <448875CA.60901@fhcrc.org>

Hello,

Man page for 'install.packages' says that if the 'lib' arg is missing,
then it "defaults to '.libPaths()[1]' with a warning".
But, given the 'install.packages' source code, it seems that this warning
is issued only when 'length(.libPaths()) > 1'.
So typically, this warning will appear on Mac OS X but not on a Linux
or Windows systems with default settings.
On my Mac OS X system:

     > .libPaths()
    [1] "/Users/biocbuild/Library/R/Library"
    [2] "/Library/Frameworks/R.Framework/Versions/2.3/Resources/library"

but on my Linux system:

     > .libPaths()
    [1] "/home/hpages/arch/x86_64/R-2.3.1/library"

I'm using R-2.3.1 on both systems.
Best,


H.

-- 
------------------------
Herv? Pag?s
E-mail: hpages at fhcrc.org
 Phone: (206) 667-5791
   Fax: (206) 667-1319



[Rd] install.packages() does not warn when 'lib' arg is missing on Linux or Windows
Herve Pages