pretty_rmd: Attach namespacing to Rmarkdown chunks

View source: R/pretty_rmd.R

pretty_rmdR Documentation

Attach namespacing to Rmarkdown chunks

Description

Apply pretty_namespace to Rmarkdown document

Usage

pretty_rmd(
  input,
  output = tempfile(fileext = ".Rmd"),
  open_output = TRUE,
  create_library = TRUE,
  chunks = NULL,
  ...
)

Arguments

input

character, path to input Rmd file

output

character, path to output Rmd file, Default: NULL

open_output

boolean, open the output on.exit, Default: TRUE

create_library

boolean, create library chunk, Default: TRUE

chunks

numeric, indicies of chunks to run on, Default: NULL

...

arguments to pass to pretty_namespace

Details

If output is NULL then the returned lines are printed to console. If chunks is NULL then all the chunks are used.

Value

character

Author(s)

Jonathan Sidi

See Also

pretty_namespace

Examples

## Not run: 
  if(interactive()){
    pretty_rmd(input = system.file('example.Rmd',package = 'sinew'))
  }

## End(Not run)

metrumresearchgroup/sinew documentation built on Feb. 28, 2024, 3:13 a.m.