draft_qemptydoc: Create Empty Generic Rmarkdown Document

Description Usage Arguments Details Value Examples

View source: R/draft_rmd.R

Description

Wrapper function for rmarkdown::draft to create an empty generic Rmarkdown document with reasonable default values.

Usage

1
2
3
4
5
6
7
8
draft_qemptydoc(
  ps_path,
  ps_template = "qemptydoc",
  ps_package = "qrmdreport",
  ps_create_dir = "default",
  pb_edit = FALSE,
  pb_open = rlang::is_interactive()
)

Arguments

ps_path

path to the document to be created

ps_template

name of the tempalte

ps_package

package which contains the template

ps_create_dir

specify whether to create a new directory

pb_edit

flag whether newly created file should be edited

pb_open

open the created file in rstudio editor

Details

The template 'qemptydoc' is taken from this package 'qrmdreport'.

Value

invisible(TRUE)

Examples

1
2
3
4
## Not run: 
draft_qemptydoc(ps_path = 'empty_test_doc')

## End(Not run)

pvrqualitasag/qrmdreport documentation built on April 17, 2021, 6:37 a.m.