Its coming from the Hmisc startup. For example, in a clean session (R
--vanilla) try this:
library(survival)
library(Hmisc)
Replacing the above call with this will suppress it:
suppressPackageStartupMessages(library(Hmisc))
To track it down:
debug(message)
and then run your script and step through each line in the debugger
until you see the message and then enter:
sys.calls()
to see where you are.
On Wed, May 5, 2010 at 2:31 PM, Dennis Fisher <fisher at plessthan.com>
wrote:> Colleagues
>
> I am executing a length script in R (20K lines). ?At one point, it returns:
>> Loading required package: tcltk
>> Loading Tcl/Tk interface ... done
>> Loading required package: Hmisc
>> Loading required package: survival
>> Loading required package: stats
>> Loading required package: graphics
>> Loading required package: splines
>> Attaching package: 'Hmisc'
>> ? ? ? The following object(s) are masked from package:survival :
>> ? ? ? ?untangle.specials
>> ? ? ? The following object(s) are masked from package:base :
>> ? ? ? ?format.pval,
>> ? ? ? ?round.POSIXt,
>> ? ? ? ?trunc.POSIXt,
>> ? ? ? ?units
>> Loading required package: R2HTML
>
> This is not a problem but I am curious as to the source of the message.
>
> The command "require" appears three times in my code, for chron,
XML, and SASxport. ?When I test each of these (e.g., require("chron"))
in a new session of R, I don't receive the messages shown above. ?But, the
script does return that message.
>
> Does anyone recognize this specific message, i.e., what is triggering the
messages?
>
> Thanks in advance.
>
> Dennis
>
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone: 1-866-PLessThan (1-866-753-7784)
> Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>