Usage
reportCoverage(packagename = "", packagedir = getwd(), htmlwd = getwd(), rdir = file.path(packagedir, "R"), unittestdir = file.path(packagedir, "inst", "tests"), sourcefiles = NULL, executionfiles = NULL, reportfile = file.path(htmlwd, "coverage_report.html"), outputfile = file.path(htmlwd, "traceOutput.txt"), ignorelist = "", writereport = TRUE, clean = FALSE, verbose = TRUE, refnamespaces = NULL, isrunit = FALSE, runitfileregexp = "^test_.+\\.[rR]$", runitfuncregexp = "^test.+")
Arguments
packagename
Name of package. Optional if
sourcefiles and executionfiles are specified instead.
packagedir
Path to package directory. Optional if
sourcefiles and executionfiles are specified instead.
htmlwd
Directory to output HTML reports. Uses
getwd() by default.
rdir
Source code directory. Assumes R/
if
not specified.
unittestdir
Unit test directory. Assumes
inst/tests/
if not specified.
sourcefiles
Character vector of absolute file
paths of source code. Optional if a package is
specified.
executionfiles
Character vector of absolute file
paths of unit tests to run. Optional is a package is
specified.
reportfile
Report filename. "test.html" by
default.
outputfile
Output filename. "traceOutput.txt" by
default.
ignorelist
Ignore list. Empty by default.
clean
Should trace tables be removed? FALSE by
default.
writereport
Should an HTML be created? Default is
TRUE.
refnamespaces
Vector of namespaces where :::
referecing should be intercepted. NULL by default.
isrunit
Are the tests RUnit? Assumes testthat by
default.
runitfileregexp
Regexp to check runit filenames
against.
runitfuncregexp
Regexp to check runit function
names against.