Run 'R CMD check' from 'R' and Capture Results

Run 'R CMD check' from 'R' programmatically, and capture the results of the individual checks.


Project Status: Active - The project has reached a stable, usable state and is being actively developed. Linux Build Status Windows Build status CRAN RStudio mirror downloads Coverage Status

Run R CMD check form R programatically, and capture the results of the individual checks.

Installation

devtools::install_github("mangothecat/rcmdcheck")

Usage

library(rcmdcheck)
rcmdcheck("path/to/R/package")

Call rcmdcheck() on a source R package .tar.gz file, or on a folder containing your R package. Supply quiet = FALSE if you want to omit the output. The result of the check is returned, in a list with elements errors, warnings, and notes. Each element is a character vector, and one element of the character vectors is a single failure.

License

MIT © Mango Solutions

News

1.2.1

  • Compare two check results with compare_checks or compare check results to CRAN with compare_to_cran.

  • The result object has more metadata: package name, version, R version and platform.

  • Refined printing of the result.

  • rcmdcheck() works on tarballs build via R CMD build now.

  • Parse R CMD check results: parse_check, parse_check_url.

  • Download and parse check results for CRAN packages.

  • Report errors during the build, typically vignette errors.

  • Use the callr package (https://github.com/MangoTheCat/callr) for running R CMD commands.

1.1.0

  • New arguments libpath and repos to set the library path and the default CRAN repository

  • Do not run tests on CRAN.

1.0.0

First public release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rcmdcheck")

1.2.1 by Gabor Csardi, 2 years ago


https://github.com/MangoTheCat/rcmdcheck


Report a bug at https://github.com/MangoTheCat/rcmdcheck/issues


Browse source code at https://github.com/cran/rcmdcheck


Authors: Gabor Csardi


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports callr, clisymbols, crayon, digest, withr

Suggests testthat


Imported by document, goodpractice, rhub.

Suggested by littler.


See at CRAN