CRAN Package Build Process - mpallocc/auto-go GitHub Wiki

Recommended: in-shell checks

Inside auto-go directory, open R shell and type the following commands:

install.packages(devtools)
library(devtools)

# apply CRAN checks (important! Verify and fix all errors, warnings and notes)
check(cran=T)

# if you want to build a full package now
build()

Finalisation: create and upload package

Position yourself in the parent directory of the auto-go folder and type:

R CMD build auto-go

to build a package and type:

R CMD check --as-cran autoGO_1.0.1.tar.gz

to verify that the package is acceptable for CRAN standards.

Know issues

There is a Note that emerges regularly when building package; it doesn't seem to cause our packages to be rejected so for now it can be ignored.

N  checking for future file timestamps ...
   unable to verify current time