[R] Package check using --as-cran

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Jan 2 17:38:39 CET 2013



On 02.01.2013 17:28, Marc Girondot wrote:
> Le 02/01/13 16:03, Uwe Ligges a écrit :
>>
>>
>> On 02.01.2013 11:58, Marc Girondot wrote:
>>> I use R 2.15.2 on MacosX 10.8.2
>>>
>>> I have a problem checking for a package that I want to submit in CRAN.
>>>
>>> When I check like that, no problem or warning are detected.
>>> system("R CMD check '[path]/phenology'")
>>>
>>> I create the .tar.gz package with that. The file phenology_3.43.tar.gz
>>> is generated. I can install the package and it works.
>>> system("R CMD build '[path]/phenology'")
>>>
>>> But if I check it using --as-cran as required by CRAN policy,
>>> system("R CMD check '[path]/phenology_3.43.tar.gz' --as-cran")
>>>
>>> I get an error:
>>> * using log directory ‘[path]/Phenology Package/phenology.Rcheck’
>>> * using R version 2.15.2 (2012-10-26)
>>> * using platform: i386-apple-darwin9.8.0 (32-bit)
>>> * using session charset: UTF-8
>>> * checking for file ‘phenology/DESCRIPTION’ ... OK
>>> * checking extension type ... Package
>>> * this is package ‘phenology’ version ‘3.43’
>>> * checking CRAN incoming feasibility ... OK
>>> Maintainer: ‘Marc Girondot <marc.girondot at u-psud.fr>’
>>> * checking package namespace information ... OK
>>> * checking package dependencies ... OK
>>> * checking if this is a source package ... OK
>>> * checking if there is a namespace ... OK
>>> * checking for executable files ... OK
>>> * checking for hidden files and directories ... OK
>>> * checking whether package ‘phenology’ can be installed ... ERROR
>>> Installation failed.
>>> See ‘[path]/phenology.Rcheck/00install.out’ for details.
>>>
>>> The file 00install.out has no more information, it is just a copy of
>>> these informations.
>>>
>>> I would like to know if there is a "verbose" version of the check.
>>
>>
>> Well, the "verbos"e part is in file
>> [path]/phenology.Rcheck/00install.out
>> as the ERROR message told you.
>>
>> Best,
>> Uwe Ligges
>>
>>
>>
> Thanks... I had read this file but then the "verbose" message is obscure !
> Any idea ?
>
> Thanks
>
> Marc
>
> * installing *source* package ‘phenology’ ...
> ** R
> ** data
> **  moving datasets to lazyload DB
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** testing if installed package can be loaded
> *** arch - i386
> sh: de: command not found

Oh, sh fails saying that some shell command "de" was not found that was 
required when trying to load the package. Not sure if that is part of 
the phenology startup?

Uwe



> *** arch - x86_64
> sh: de: command not found
> ERREUR : loading failed for ‘i386’, ‘x86_64’
> * removing ‘/Users/marcgirondot/Documents/Espace de travail
> R/Phenology/Source fit/Phenology Package/phenology.Rcheck/phenology’
>
>
>




More information about the R-help mailing list