View source: R/fill_description.R
fill_description | R Documentation |
Fill DESCRIPTION file of the package
fill_description(pkg = ".", fields, overwrite = FALSE)
pkg |
Path to package |
fields |
A named list of fields to add to DESCRIPTION, potentially
overriding default values. See |
overwrite |
Whether to overwrite existing DESCRIPTION |
Fill DESCRIPTION file with fields. Return path to file.
# Create a new project
dummypackage <- tempfile("dummy.package.desc")
dir.create(dummypackage)
fill_description(
pkg = dummypackage,
fields = list(
Title = "Build A Package From Rmarkdown file",
Description = paste(
"Use Rmd First method to build your package.",
"Start your package with documentation.",
"Everything can be set from a Rmarkdown file in your project."
),
`Authors@R` = c(
person(
"John",
"Doe",
email = "john@email.me",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0000-0000-0000")
)
)
)
)
# Delete dummy package
unlink(dummypackage, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.