Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 913 Bytes

File metadata and controls

27 lines (22 loc) · 913 Bytes

pkgTesteR

pkgTesteR creates a validation form for a R package tracked with git.

For example, to create the validation form for the inTextSummaryTable R package:

  1. Install the R package from CRAN with tests included:
remotes::install_version("inTextSummaryTable", version = "3.3.0", INSTALL_opts = "--install-tests")

  1. Clone the git repository with the source code of the package:
git clone https://github.com/openanalytics/inTextSummaryTable.git
  1. 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.