View source: R/worcs_project.R
worcs_project | R Documentation |
Creates a new 'worcs' project. This function is invoked by the 'RStudio' project template manager, but can also be called directly to create a WORCS project through syntax or the console.
worcs_project(
path = "worcs_project",
manuscript = "APA6",
preregistration = "cos_prereg",
add_license = "CC_BY_4.0",
use_renv = TRUE,
use_targets = FALSE,
remote_repo = "https",
verbose = TRUE,
...
)
path |
Character, indicating the directory in which to create the 'worcs' project. Default: 'worcs_project'. |
manuscript |
Character, indicating what template to use for the
'R Markdown' manuscript. Default: 'APA6'. Available choices include
|
preregistration |
Character, indicating what template to use for the
preregistration. Default: 'cos_prereg'. Available choices include:
|
add_license |
Character, indicating what license to include.
Default: 'CC_BY_4.0'. Available options include:
|
use_renv |
Logical, indicating whether or not to use 'renv' to make the
project reproducible. Default: TRUE. See |
use_targets |
Logical, indicating whether or not to use 'targets' to
create a Make-like pipeline. Default: FALSE See |
remote_repo |
Character, address of the remote repository for
this project. This link should have the form
|
verbose |
Logical. Whether or not to print messages to the console during project creation. Default: TRUE |
... |
Additional arguments passed to and from functions. |
No return value. This function is called for its side effects.
the_test <- "worcs_template"
old_wd <- getwd()
dir.create(file.path(tempdir(), the_test))
do.call(git_user, worcs:::get_user())
worcs_project(file.path(tempdir(), the_test, "worcs_project"),
manuscript = "github_document",
preregistration = "None",
add_license = "None",
use_renv = FALSE,
remote_repo = "https")
setwd(old_wd)
unlink(file.path(tempdir(), the_test))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.