Adds an Rmarkdown manuscript to a 'worcs' project.
Usage
add_manuscript(
  worcs_directory = ".",
  manuscript = "APA6",
  remote_repo = NULL,
  verbose = TRUE,
  ...
)Arguments
- 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:
"APA6", "github_document", "None"and the templates from therticlespackage. See Details.- remote_repo
 Character, 'https' link to the remote repository for this project. This link should have the form
https://[...].git. This link will be inserted in the draft manuscript.- verbose
 Logical. Whether or not to print messages to the console during project creation. Default: TRUE
- ...
 Additional arguments passed to and from functions.
Details
Available choices include the following manuscript templates:
'APA6'An APA6 style template from the
papajapackage'github_document'A
github_documentfrom thermarkdownpackage'acm_article'acm style template from the
rticespackage'acs_article'acs style template from the
rticespackage'aea_article'aea style template from the
rticespackage'agu_article'agu style template from the
rticespackage'ajs_article'ajs style template from the
rticespackage'amq_article'amq style template from the
rticespackage'ams_article'ams style template from the
rticespackage'arxiv_article'arxiv style template from the
rticespackage'asa_article'asa style template from the
rticespackage'bioinformatics_article'bioinformatics style template from the
rticespackage'biometrics_article'biometrics style template from the
rticespackage'copernicus_article'copernicus style template from the
rticespackage'ctex_article'ctex style template from the
rticespackage'elsevier_article'elsevier style template from the
rticespackage'frontiers_article'frontiers style template from the
rticespackage'glossa_article'glossa style template from the
rticespackage'ieee_article'ieee style template from the
rticespackage'ims_article'ims style template from the
rticespackage'informs_article'informs style template from the
rticespackage'iop_article'iop style template from the
rticespackage'isba_article'isba style template from the
rticespackage'jasa_article'jasa style template from the
rticespackage'jedm_article'jedm style template from the
rticespackage'joss_article'joss style template from the
rticespackage'jss_article'jss style template from the
rticespackage'lipics_article'lipics style template from the
rticespackage'mdpi_article'mdpi style template from the
rticespackage'mnras_article'mnras style template from the
rticespackage'oup_article'oup style template from the
rticespackage'peerj_article'peerj style template from the
rticespackage'pihph_article'pihph style template from the
rticespackage'plos_article'plos style template from the
rticespackage'pnas_article'pnas style template from the
rticespackage'rjournal_article'rjournal style template from the
rticespackage'rsos_article'rsos style template from the
rticespackage'rss_article'rss style template from the
rticespackage'sage_article'sage style template from the
rticespackage'sim_article'sim style template from the
rticespackage'springer_article'springer style template from the
rticespackage'tf_article'tf style template from the
rticespackage'trb_article'trb style template from the
rticespackage'wellcomeor_article'wellcomeor style template from the
rticespackage
Examples
the_test <- "worcs_manuscript"
old_wd <- getwd()
dir.create(file.path(tempdir(), the_test))
file.create(file.path(tempdir(), the_test, ".worcs"))
#> [1] TRUE
add_manuscript(file.path(tempdir(), the_test),
              manuscript = "None")
#> ✔ Creating manuscript files.
setwd(old_wd)
unlink(file.path(tempdir(), the_test))
