Populates the directory specified via path with all the necessary files for a new R Markdown package.
The DESCRIPTION file is created using
usethis::use_description() and all fields except Package, URL and BugReports are sourced from the usethis.description R option if defined.
Usage
create_pkg(
name,
id_netlify = NULL,
path = ".",
incl_roxygen2_meta = TRUE,
incl_reexports = FALSE,
incl_sysdata_rmd = FALSE,
incl_data_rmd = FALSE,
incl_asciicasts_rmd = FALSE,
incl_pkgdown_config = TRUE,
incl_ripgrep_config = TRUE,
incl_ack_config = FALSE,
incl_air_config = FALSE
)Arguments
- name
Package name.
- id_netlify
Netlify site identifier.
- path
Path to the new package directory.
- incl_roxygen2_meta
Whether or not to create a
man/roxygen/meta.Rfile that i.a. stores the metadata for roxygen2's@familytags.- incl_reexports
Whether or not to create an
R/reexports.Rfile prefilled with an opinionated set of magrittr and rland operator exports.- incl_sysdata_rmd
Whether or not to create an
Rmd/sysdata.nopurl.Rmdstub file.- incl_data_rmd
Whether or not to create an
Rmd/data.nopurl.Rmdstub file.- incl_asciicasts_rmd
Whether or not to create an
Rmd/asciicasts.nopurl.Rmdstub file.- incl_pkgdown_config
Whether or not to create a minimal
pkgdown/_pkgdown.ymlconfiguration file.- incl_ripgrep_config
Whether or not to create a ripgrep ignore file
.rgignore.- incl_ack_config
Whether or not to create an
.ackrcconfiguration file.- incl_air_config
Whether or not to create an
air.tomlconfiguration file. Note that air is not of much use yet for R Markdown packages.