The primary goal of rqualify is to ease the R software validation
steps required for regulatory submissions. The rqualify
function automates the generation of a validation document that can be
used to demonstrate that an R environment is suitable for use in a
regulated setting.
Once the rqualify package is installed, executing the
validation script is as simple as running the function:
Ensure the folder you specify does not already include a folder named
R-validation. See ?rqualify for more info.
How does rqualify work?
The rqualify function performs the following steps:
- Creates the folder tree
R-validation/IQ-OQ-TestOutputat the specifiedpath_save. - Installs TinyTeX and necessary LaTeX packages (if
setup_tinytex=TRUE). - Installs Pandoc (if
setup_pandoc=TRUE). - Copies
R-validation.Rmdto theR-validationfolder. - Executes the IQ-OQ by rendering
R-validation.RmdtoR-validation.tex. - Compiles
R-validation.textoR-validation.pdf.
In case you are developing a process for user-level qualification,
the file R-validation.Rmd located in the root directory of
this package at qualify_r/R-validation.Rmd can be used as a
template for your own validation document. Note, if viewing on Github,
the R-validation.Rmd file is located at
inst/qualify_r/R-validation.Rmd.
Tips for a Successful Qualification
- Best practice is to Install and execute the qualification code on a new and fresh installation of R, prior to installing additional packages.
- Install and validate on a new minor release of R, e.g., upgrading from 4.4.3 to 4.5.1; notice the bold numbers indicate the minor releases.
- If unwilling to install and validate on a new minor release of R, e.g., upgrading from 4.4.1 to 4.4.2, the validation may fail.
- If running the validation a second time within the same
R-validationfolder, remove or rename theIQ-OQ-TestOutputsubfolder that was created.
