build_install_test {tinytest} | R Documentation |
build, install and test
Description
Builds and installs the package in pkgdir
under a temporary
directory. Next, loads the package in a fresh R session and runs all the
tests. For this function to work the following system requirements are
necessary.
R CMD build
is available on your systemRscript
is available on your system
Usage
build_install_test(
pkgdir = "./",
testdir = "tinytest",
pattern = "^test.*\\.[rR]$",
at_home = TRUE,
verbose = getOption("tt.verbose", 2),
color = getOption("tt.pr.color", TRUE),
ncpu = 1,
remove_side_effects = TRUE,
side_effects = FALSE,
lc_collate = getOption("tt.collate", NA),
keep_tempdir = FALSE,
encoding = "unknown"
)
Arguments
pkgdir |
|
testdir |
|
pattern |
|
at_home |
|
verbose |
|
color |
|
ncpu |
|
remove_side_effects |
|
side_effects |
|
lc_collate |
|
keep_tempdir |
|
encoding |
|
Value
A tinytests
object.
See Also
Other test-files:
exit_file()
,
run_test_dir()
,
run_test_file()
,
summary.tinytests()
,
test_package()
Examples
## Not run:
## If your package source directory is "./pkg" you can run
build_install_test("pkg")
## End(Not run)