knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) remotes::install_cran(c("desc"), repos = "https://cran.rstudio.com/", quiet = TRUE) desc_obj <- desc::description$new() package_name <- desc_obj$get_field("Package")
This article describes how to use the template for a new package. The Overview section presents a recipe that leads to a fully configure package. The rest of the sections illustrate some of the steps. For more general information about R package development, refer to [@wickham2015r].
The following steps set up:
To use the template for a new package, follow the next steps:
vignettes
folder;template.package.Rproj
to {package-name}.Rproj
;README.Rmd
file. By default, README.Rmd displays package
information gathered from the DESCRIPTION file;Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.