Wrapper function for rmarkdown::draft to create an empty generic Rmarkdown document with reasonable default values.
draft_qemptydoc(
ps_path,
ps_create_dir = "default",
pb_open = rlang::is_interactive(),
pl_repl_value = NULL
)
path to the document to be created
specify whether to create a new directory
open the created file in rstudio editor
list with values to replace placeholders
invisible(TRUE)
The template 'qemptydoc' is taken from this package 'qrmdtmpl'.
if (FALSE) {
draft_qemptydoc(ps_path = 'empty_test_doc')
}