[Rd] Query about .check_packages_used_in_examples
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Oct 11 12:11:42 CEST 2010
Sounds reasonable to count Imports, so we'll alter this.
Thank you for the report, However, the pre-test period for 2.12.0 is
already 80% over and we are in code freeze -- reports early on in the
period are much more useful and at this stage anything but very simple
localized changes need to be deferred to 2.12.1.
On Mon, 11 Oct 2010, Berwin A Turlach wrote:
> G'day all,
>
> sorry, should proof-read better before hitting the send button...
>
> On Mon, 11 Oct 2010 06:06:46 +0800
> Berwin A Turlach <berwin at maths.uwa.edu.au> wrote:
>
>> But then I noticed that for another package I have on R-forge a
>> similar note is issued:
>> https://r-forge.r-project.org/R/?group_id=630&log=check_x86_64_linux&pkg=DeconWK&flavor=devel
>> O.k., R-forge is using R-devel, so I installed R 2.12.0 RC (2010-10-10
>> r53273) on my machine to check, same note is issued.
>>
>> The note issued by R CMD check says:
>> * checking for unstated dependencies in examples ... NOTE
>> 'library' or 'require' call not declared from: ks
>> which is a bit surprising.
>>
>> There are three .Rd files that have a library(ks) in them and ks is
>> listed in the Imports: of the description file.
>>
>> This seems to be completely in line with the documentation in "Writing
>> R extensions":
>>
>> @item
>> Packages whose name space only is needed to load the package
>> using @code{library(@var{pkgname})} must be listed in the
>> @samp{Imports} field and not in the @samp{Depends} field.
>>
>> that's why ks is listed in depends
>
> ks is listed in the Imports: line in the DESCRIPTION file of the package
> in question, not in the Depends: line.
>
>> @item
>> All packages that are needed to successfully run @code{R CMD
>> check} on the package must be listed in one of @samp{Depends}
>> or @samp{Suggests} or @samp{Imports}. [...]
>>
>> which seems to be adhered to, since ks is in the depends.
>
> Again, this depends should read Imports.
>
> Sorry if this created confusion.
>
> Cheers,
>
> Berwin
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
--
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
More information about the R-devel
mailing list