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.





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.


MIT © Mango Solutions



  • 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 ( for running R CMD commands.


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

  • Do not run tests on CRAN.


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.


1.3.0 by Gábor Csárdi, 6 days ago

Report a bug at

Browse source code at

Authors: Gábor Csárdi

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports callr, cli, crayon, desc, digest, pkgbuild, prettyunits, R6, rprojroot, utils, withr, xopen

Suggests covr, knitr, mockery, rmarkdown, testthat

Imported by document, goodpractice, rhub.

Suggested by littler.

See at CRAN