setup_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 |
|
force |
|
verbose |
|
NULL
, invisibly.
DESCRIPTION
Fails when it does not exist. It is assumed that the
package is named in the DESCRIPTION
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.