setup_tinytest {tinytest} | R Documentation |
Creates inst/tinytest
, and an example test file in that
directory. Creates tests/tinytest.R
so the package is
tested with R CMD check
. Adds tinytests
as a suggested
package to the DESCRIPTION
.
setup_tinytest(pkgdir, force = FALSE, verbose = TRUE)
pkgdir |
Package source directory |
force |
Toggle overwrite existing files? (not folders) |
verbose |
Toggle print progress |
NULL
, invisibly.
DESCRIPTION
Fails when it does not exist. It is assumed that the
package is named in the DESCRIPTION
.
This function is still a little experimental, please report bugs at https://github.com/markvanderloo/tinytest/issues.
## Not run: # an easy way to set up a package 'haha' that passes # R CMD check pkgKitten::kitten("haha") tinytest::setup_tinytest("haha") ## End(Not run)