makes factors less annoying
library(devtools)
create_package("path/pkg_name")
use_git()
use_r("fnct_name")
fnct_name
load_all()
fnct_name()
workscheck()
use_mit_license("Emma Rand")
document()
and check with ?fnct_name
check()
install()
library(pkg_name)
use_thatthat()
use_test("fnct_name")
library(testthat)
then load_all()
then run test interactivelytest()
to run all testscheck()
will aso run the testsuse_package("other_pkg")
to add to the 'Imports' in DESCRIPTIONother_pkg::its_function()
in your .R where neededusethis::use_github()
use_readme_rmd()
and edit the README.Rmd, pref including usage examples.check()
install
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.