[R] Error executing R CMD check --as-cran caused by missing Maintainer field

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Aug 3 09:23:15 CEST 2013


On 02/08/2013 20:04, Stefano Costa wrote:
> Hello,
> while checking a small package I wrote
> (http://cran.r-project.org/web/packages/tipom/) before submitting a new
> version, I was blocked by an error in the "checking CRAN incoming feasibility"
> section of R CMD check --as-cran, as pasted below:
>
> steko at ganymede:~/code$ LC_ALL=C R CMD check --as-cran tipom
> * using log directory '/home/steko/code/tipom.Rcheck'
> * using R version 3.0.1 (2013-05-16)
> * using platform: i486-pc-linux-gnu (32-bit)
> * using session charset: ASCII
> * checking for file 'tipom/DESCRIPTION' ... OK
> * checking extension type ... Package
> * this is package 'tipom' version '1.0.1'
> * checking CRAN incoming feasibility ...Error in if (!all(m_m_1 == m_d_1)) { :
>    missing value where TRUE/FALSE needed
> Execution halted
>
> The error occurs using R 3.0.1 on both Debian and Fedora (distribution
> packages). I understand it is caused by some missing information in the
> DESCRIPTION file. With some trial and error, following some clues found at
> https://github.com/hadley/devtools/issues/209, I could figure out it was
> missing the "Maintainer" field. However, in the "Writing R extensions" manual I
> read that
>
>> Fields ‘Author’ and ‘Maintainer’ can be auto-generated from ‘Authors at R’, and
> may be omitted if the latter is provided
>
> I am indeed using Authors at R so in the end I am slightly confused. What is the
> correct way to deal with these fields? Thank you in advance

Use R CMD build to prepare a tarball.  CRAN submission requires a 
tarball as prepared by R CMD build ... and asks you to check the tarball 
you are about to submit, not a directory.

>
> Stefano
>
> --
> Stefano Costa
> http://www.iosa.it/ Open Archaeology
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
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-help mailing list