R/check_as_cran.R
check_as_cran.Rd
pkg directory to check
Where to store check outputs. Default is a temporary directory
Where to store temporary files (cleaned after). Default is another temporary directory
Number of CPU used to build the package
Whether to run the check as Linux command line, instead of directly in R
Whether to delete the previous check_output
Whether to open the check dir at the end of the process
An object containing errors, warnings, and notes.
When you send your package on CRAN, there are multiple options set before running the checks.
Here we use the CRAN settings and way of managing incoming packages used for Linux in this function check_as_cran()
.
Scripts and options used are directly issued from the GitHub mirror repository of the CRAN machines: https://github.com/r-devel/r-dev-web/tree/master/CRAN/.
Although check_as_cran()
should run on any OS, it will run CRAN parameters originally set up for Linux machines.
In the check_output
, you will get the same outputs, in the same format as used by CRAN, for the pre-test of incoming packages.
https://github.com/r-devel/r-dev-web/tree/master/CRAN/