markdown_check: Markdown header

Description Usage Arguments Details Value See Also Examples

View source: R/utilities.R

Description

Check all necessary section of the YAML header are present.

Usage

1
markdown_check(object, verbose = FALSE)

Arguments

object

Reportr object.

verbose

Show progress, Default: FALSE.

Details

If sections are not in the YAML, adds them from the object.

Value

Text representation of an R markdown file's header.

See Also

read_yaml, as.yaml

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
 if(interactive()){
  cat(markdown_check(object = create_wsteps(list())))
  cat(markdown_check(object = create_wsteps(list(),
    markdown = list("~/Documents/liai/scripts/reportr_pkg/reportr_webspec.yaml")
  )))
  cat(markdown_check(object = create_wsteps(list(),
    markdown = list(output=list(html_document=list(theme='journal')))
  )))
 }

## End(Not run)

cramirezs/wreportr documentation built on Dec. 19, 2021, 6:09 p.m.