This function will test a source package using testthat
,
making sure the package and its source package dependencies are up-to-date and loaded
Usage
pkg_test(
pkgid,
filter = NULL,
src_pkgs = get_srcpkgs(),
export_all = TRUE,
quiet = TRUE,
...
)
Arguments
- pkgid
a package name, path or package object
- filter
filter in the tests to run. cf
testthat::test_dir()
- src_pkgs
a collection of source packages as a
srckgs
object.- export_all
passed to
pkg_load()
. Enables the test functions to easily access to non-exported functions. Caveat: If the pkg is already loaded and up-to-date with export_all=FALSE, it will not work.- quiet
whether to be quiet/silent
- ...
passed to
testthat::test_dir()