devtools::document() # Generate documents ('NAMESPACE' and 'man/*.md') from comments in 'R/*.R' with Roxygen
devtools::check() # Tests run in this process
devtools::build()
devtools::build() generates a tar.gz file, which includes all the files required for the package. You can install the package with the file with the command below.
install.packages("package_0.X.X.tar.gz", repos = NULL, type = "source")
# Initialization
usethis::use_testthat()
# Add a new test file
usethis::use_test("filename")
Vignette has not been used in the build process, yet.
# Initialization
usethis::use_vignette("my-vignette")
devtools::build_vignettes()
devtools::clean_vignettes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.