Copy and spin tests/testhat/*.R to vignettes/tests/*.Rmd. It is assumed that tests/testhat/*.R are written using Roxygen comments.

pkg_tests2vignettes(pkg_root = getwd(), par = FALSE, ncores = NULL)

Arguments

pkg_root

Character string. Package root directory.

par

Logical. If TRUE, use multiple cores.

ncores

Integer. Number of cores to use if par = TRUE. If unspecified, defaults to detectCores() - 1.

Author

Ivan Jacob Agaloos Pesigan