Christian Kohler
2007-Sep-20 14:48 UTC
[R] warnings although R CMD check runs without any problem
Dear list members, as I am new to R, I would kindly like to ask for your help. I checked a package with the 'R CMD check' command and all worked out well, (only 'OK' status). Loading its vignette afterwards with 'source("package.Rcheck/inst/doc/vignette.R")' yields a message saying that several (well, in my case more than 50) warnings still exist and can be viewed via the 'warnings()' command. My question now is: why are there still warnings even though the check has been passed without any problems? Generally speaking, would it be possible to submit this package e.g. to the Bioconductor project, even if these warnings still exist? Thanks in advance, Christian -- Christian Kohler Institute of Functional Genomics Computational Diagnostics University of Regensburg D-93147 Regensburg (Germany)
Uwe Ligges
2007-Sep-20 14:57 UTC
[R] warnings although R CMD check runs without any problem
Can you give examples? Uwe Christian Kohler wrote:> Dear list members, > > as I am new to R, I would kindly like to ask for your help. > > I checked a package with the 'R CMD check' command and all worked out > well, (only 'OK' status). Loading its vignette afterwards with > 'source("package.Rcheck/inst/doc/vignette.R")' yields a message saying > that several (well, in my case more than 50) warnings still exist and > can be viewed via the 'warnings()' command. > > My question now is: why are there still warnings even though the check > has been passed without any problems? Generally speaking, would it be > possible to submit this package e.g. to the Bioconductor project, even > if these warnings still exist? > > > Thanks in advance, > Christian > > >
Prof Brian Ripley
2007-Sep-20 15:30 UTC
[R] warnings although R CMD check runs without any problem
On Thu, 20 Sep 2007, Christian Kohler wrote:> Dear list members, > > as I am new to R, I would kindly like to ask for your help. > > I checked a package with the 'R CMD check' command and all worked out > well, (only 'OK' status). Loading its vignette afterwards with > 'source("package.Rcheck/inst/doc/vignette.R")' yields a message saying > that several (well, in my case more than 50) warnings still exist and > can be viewed via the 'warnings()' command. > > My question now is: why are there still warnings even though the check > has been passed without any problems? Generally speaking, would it beBecause the check process does not consider R-level warnings in examples or vignettes, only errors. Only someone who understands the code will know if the warnings are pedagogical, innocuous or serious. No one says that examples should not give warnings, and it may be helpful to illustrate when they might occur.> possible to submit this package e.g. to the Bioconductor project, even > if these warnings still exist?It is possible to submit it, and very likely that it would be acceptable. Distributing a package with warnings you do not understand is not a good idea, though. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595