Skip to content

Package check using --as-cran

7 messages · Uwe Ligges, Marc Girondot, Stefan Evert

#
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.

Thanks a lot

Marc Girondot
#
On 02.01.2013 11:58, Marc Girondot wrote:
Well, the "verbos"e part is in file
[path]/phenology.Rcheck/00install.out
as the ERROR message told you.

Best,
Uwe Ligges
#
Le 02/01/13 16:03, Uwe Ligges a ?crit :
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
*** 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?
#
On 02.01.2013 17:28, Marc Girondot wrote:
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
#
Le 02/01/13 17:38, Uwe Ligges a ?crit :
Dear Uwe,

I do not use this command de (no idea what is it !)

I try first to simplify at the maximum the package and I get the same error.

Then I check it on windows XP, R 2.15.2 and it works. No error.

Then it seems there is a bug in CMD check path/name --as-cran in the 
MacosX version.

Thanks a lot for your help,

Marc
#
Looks to me like it might be an issue with whitespace in the directory path.  In particular, "de" is the first word component after a blank above (in "Espace de travail R").
I guess you could argue that.  If whitespace isn't allowed in file path, "check --as-cran" should issue a meaningful warning; otherwise, it should work just as "check" without --as-cran does.

Best
Stefan
#
Le 03/01/13 10:33, Stefan Evert a ?crit :
Thanks a lot. You have the solution !

If I replace the spaces with _, all is working.

However it works fine with the spaces if the check is done without the 
--as-cran option. Confusing !

Thanks a lot for your help,

Marc