Re: [Rd] Suppressing a warning from library()

2010-02-24 Thread Terry Therneau
The suppressWarnings construct looks like a good idea; I was not aware of it's existence. Thanks for the feedback. Terry T. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Suppressing a warning from library()

2010-02-24 Thread Prof Brian Ripley
On Wed, 24 Feb 2010, Terry Therneau wrote: I get a warning about "1 warning message" using R CMD check on the survival library. It comes from the code snippet: if (library(cmprsk, logical.return=TRUE)) { # further test of competing risks from survfit . . } Thi

Re: [Rd] Suppressing a warning from library()

2010-02-24 Thread Peter Dalgaard
Terry Therneau wrote: I get a warning about "1 warning message" using R CMD check on the survival library. It comes from the code snippet: if (library(cmprsk, logical.return=TRUE)) { # further test of competing risks from survfit . . } This is a very useful ad

[Rd] Suppressing a warning from library()

2010-02-24 Thread Terry Therneau
I get a warning about "1 warning message" using R CMD check on the survival library. It comes from the code snippet: if (library(cmprsk, logical.return=TRUE)) { # further test of competing risks from survfit . . } This is a very useful additional test when I'm c