Exercise

Running a check

Before a package can be made available on CRAN it is required to pass a series of checks that can be run from the command line using R CMD check. Even if you don't intend to make a package available on CRAN, it is good practice to run this and ensure that your package passes all of the checks. Just like all other build features this is simplified in devtools with the function check().

When you run check(), if the argument cran is set to TRUE, you run exactly the same checks which are run when you submit a package to CRAN. As the cran argument has a default value of TRUE, you do not need to do change it unless you do not wish to run all of the CRAN checks.

Instructions

100 XP
  • Use the check() function to check the datasummary package.