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 additional test when I'm checking any changes to
> the affected code, so I like having this in my test suite even though it
> doesn't run automatically.
>
> This argues for a change in library -- when the user sets logical.return
> =T they don't need a warning message too. I submit this to the R core
> and their collective wisdom.
>
> I admit that mine is an unusual case, and for now I'll turn if off with
> options(warn=-1)
Probably, wrapping in suppressWarnings() is better.
-p
--
O__ ---- Peter Dalgaard ุster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk) FAX: (+45) 35327907
______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 24 Feb 2010 - 17:22:21 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 24 Feb 2010 - 17:50:47 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.