Generate a self-contained PDF report documenting whether the NonCompart package is correctly installed, intact, loadable, and operational in the user's own R environment. It is intended as Installation Qualification (IQ) evidence. The report uses only base R and the package's own pdf helpers, so it requires no LaTeX, pandoc, or other external tools. The signature (approval) page is placed first and the report uses 1 inch margins on every side, with Letter paper in a United States locale and A4 elsewhere.
IQNCA(fileName = "NonCompart-IQ-Report.pdf", pkgs = "NonCompart",
functional = TRUE, performedBy = "", paper = "auto", sigField = FALSE)Invisibly, a list with fileName, qualified, paper, checks
(a data frame of every check), and the counts nPass, nFail,
nWarn. A PDF file is written to fileName.
file name to save the PDF report.
character vector of package names to qualify; defaults to
"NonCompart". Declared dependencies are checked automatically.
if TRUE, run a small operational check: a known NCA
computation (Theophylline subject 1) via sNCA is compared with an
external WinNonlin reference within a relative tolerance of 1e-3, plus two
control tests that verify the comparator itself.
name of the person performing the qualification, printed on the signature page. Defaults to the login name.
paper size: "letter", "a4", or "auto" (the
default; Letter in a United States locale, A4 elsewhere).
if TRUE, add Adobe Acrobat Reader signature fields to the
finished report (via addSigFieldNCA) so it can be signed with one
click in Acrobat Reader.
Kyun-Seop Bae <[email protected]>
The report contains: the test environment (R version, platform, OS, locale, library
paths); the installed package version, location and declared-dependency satisfaction;
file integrity via checkMD5sums (PASS / FAIL / WARN when no
manifest is present - see writeMD5NCA); namespace load and core exports;
an optional functional verification; an overall QUALIFIED / NOT QUALIFIED verdict; a
sessionInfo appendix; and a per-file md5 checksum appendix.
OQNCA, writeMD5NCA, sNCA, tblNCA
#IQNCA()
#res <- IQNCA(performedBy = "Jane Doe"); res$qualified
Run the code above in your browser using DataLab