prepare_design_documentation: Document your Research Design in a PDF File

View source: R/prepare_design_documentation.R

prepare_design_documentationR Documentation

Document your Research Design in a PDF File

Description

Uses the documentation block of each step to generate a rmarkdown based documentation of your research design.

Usage

prepare_design_documentation(
  d,
  output_file,
  title = "Research Design",
  code = TRUE,
  rmd_header = c("--- ", sprintf("title: \"%s\"", title), sprintf("date: \"%s\"",
    Sys.Date()), "output: pdf_document", "---", "")
)

Arguments

d

A character vector of the research design steps function names

output_file

The file name to store the PDF file to.

title

A title string.

code

A logical value indicating whether the R code of the design steps should be included in the documentation (defaults to TRUE).

rmd_header

The character value containing the header of the rmarkdown file that the function generates. Defaults to a PDF output header

Details

Output is generated by rmarkdown and saved to a PDF file, so you need a local rmarkdown installation that is capable to produce PDF files.

Examples

## Not run: 
  print("Sorry. No examples yet.")

## End(Not run)

joachim-gassen/rdfanalysis documentation built on Aug. 22, 2023, 5:29 p.m.