From andy_liaw at merck.com  Wed Mar  9 00:44:31 2005
From: andy_liaw at merck.com (Liaw, Andy)
Date: Wed Mar  9 00:45:25 2005
Subject: [Rd] delay of warning for things in .Rprofile
Message-ID: <3A822319EB35174CA3714066D590DCD50994E808@usrymx25.merck.com>

Hi all,

I was playing with R-devel 2005-03-08 on winXP Pro (installed from Duncan's
installer).  My .Rprofile contains:

options(defaultPackages=c(getOption("defaultPackages"), "mypkg"),
        chmhelp=TRUE)

but "mypkg" has not yet been installed in the library/ directory of this
installation.  When Rgui starts, I do not get any error or warning, but upon
running one command, I get:

Warning messages:
1: there is no package called 'mypkg' in: library(package, character.only =
TRUE, logical = TRUE, warn.conflicts = warn.conflicts,  
2: package mypkg in options("defaultPackages") was not found 

This seems a bit strange...  I would expect the warning to show up before
the first prompt.  Is this intentional?

Best,
Andy

Andy Liaw, PhD
Biometrics Research      PO Box 2000, RY33-300     
Merck Research Labs           Rahway, NJ 07065
andy_liaw <at> merck.com          732-594-0820


[Rd] delay of warning for things in .Rprofile
Liaw, Andy