View source: R/core_use_compendium.R
use_compendium | R Documentation |
This is usethis::create_package() with some additional messages to simplify the transition into the new project setting
use_compendium(
path = getwd(),
fields = getOption("usethis.description"),
rstudio = rstudioapi::isAvailable(),
open = TRUE,
quiet = FALSE,
simple = TRUE,
welcome_message = TRUE
)
path |
location to create new package. The last component of the path will be used as the package name |
fields |
list of description values to override default values or add additional values |
rstudio |
create an RStudio project file? (with |
open |
if TRUE and in RStudio, the new project is opened in a new instance. If TRUE and not in RStudio, the working directory is set to the new project |
quiet |
if FALSE, the default, prints informative messages |
simple |
if TRUE, the default, the R/ directory is not created, because it's not necessary for many if not most research repositories |
welcome_message |
if TRUE, rstudio, open and not quiet, then the .Rprofile file in the newly created package is prepopulated with a welcome message. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.