Wrapper to create bookdown pdf document using rmarkdown::draft.

draft_qbdpdf2(
  ps_path,
  ps_create_dir = "default",
  pb_open = rlang::is_interactive(),
  pl_repl_value = NULL
)

Arguments

ps_path

path to newly created document

ps_create_dir

option whether to create new directory for new document

pb_open

whether document should be opened

pl_repl_value

list with pattern replacement values

Examples

if (FALSE) {
draft_qbdpdf2(ps_path = "example_bdpdf2")
}