This function calls rmarkdown::draft() to create a new document.

generic_rmd_draft(
  ps_path,
  ps_template,
  ps_package,
  ps_create_dir,
  pb_open,
  pl_repl_value
)

Arguments

ps_path

path to the document to be created

ps_template

name of the template

ps_package

package containing the template

ps_create_dir

flag whether document should be put into new directory

pb_open

flag whether to open the newly created document in rstudio

pl_repl_value

list of template placeholder replacement values