pkgTesteR creates a validation form for a R package tracked with git.
For example, to create the validation form for the inTextSummaryTable R package:
- Install the R package from CRAN with tests included:
remotes::install_version("inTextSummaryTable", version = "3.3.0", INSTALL_opts = "--install-tests")
- Clone the git repository with the source code of the package:
git clone https://github.com/openanalytics/inTextSummaryTable.git
- Create a validation form highlighting tests which are new in the installed version (v3.3.0 vs 3.2.1):
pkgTesteR::exportUnitTestsToForm(
package = "inTextSummaryTable",
packageGitPath = ".",
packageVersionBase = "3.2.0", # first version for production = tests stable
riskLevel = "high",
testInfoExport = TRUE
)
See more examples and explanations on the process in ? pkgTesteR::exportUnitTestsToForm.