In my computer, R CMD check said 0 NOTE, 0 WARNING, 0 ERROR
and I submitted to CRAN. But, cran auto check said that there are errors, warnings and notes.
Why?
R is latest version 3.6.1 and I use --as-cran option.
I geuss the reason relates the fact that my computer cannot create pdf manual by the code R CMD Rd2pdf pkg path
and thus the Latex check for Rd files is not incomplete.
So, I have submitted to CRAN in 20~30 times to use R CMD check
of CRAN ...
The following error occurred in my R CMD check, but in the CRAN check, it did not occur and all my submission went through the CRAN check even if the following error did exist in my computer R CMD check.
* checking for file 'mypackage/DESCRIPTION' ... ERROR
Required field missing or empty:
'Author'
I am not sure but the above error always occurs when I run R CMD check from comand line. But I could submit to CRAN even if R CMD check fails from comand prompt.
And such error did not occurs in CRAN auto check or from Rstudio devtool::check()
.
I cannot replicate the result of CRAN auto check.
I tried R CMD check --as-cran
but it did not affects the result.
I am not sure but devtools::check() is --as-cran
by default and I use it always.
Type: Package
Title: title
Version: 0.2.0
AUthor: first last
Authors@R: person(given = "first",family = "last",email = "xxxxxxxxxxxx@gmail.com", role = c("aut", "cre") )
I added the AUthor: field but the error occurred.
My R was latest version, and further I use --as-cran but I cannot replicate the error of CRAN auto check.
* checking DESCRIPTION meta-information ... NOTE
Author field differs from that derived from Authors@R
Author: 'xxxx yyyyy'
Authors@R: 'xxxx yyyyy[aut, cre]'