Description Usage Arguments Value Examples
View source: R/worcs_project.R
Adds an Rmarkdown manuscript to a 'worcs' project.
1 2 3 4 5 6 7 | add_manuscript(
worcs_directory = ".",
manuscript = "APA6",
remote_repo = NULL,
verbose = TRUE,
...
)
|
worcs_directory |
Character, indicating the directory in which to create the manuscript files. Default: '.', which points to the current working directory. |
manuscript |
Character, indicating what template to use for the
'R Markdown' manuscript. Default: 'APA6'. Available choices include:
|
remote_repo |
Character, 'https' link to 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.
1 2 3 4 5 6 7 8 | the_test <- "worcs_manuscript"
old_wd <- getwd()
dir.create(file.path(tempdir(), the_test))
file.create(file.path(tempdir(), the_test, ".worcs"))
add_manuscript(file.path(tempdir(), the_test),
manuscript = "github_document")
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.