include_roxygen_example: include_roxygen_example

Description Usage Arguments Details Value

View source: R/utils.R

Description

Include the output of code in your documentation automatically

Usage

1
include_roxygen_example(example_string)

Arguments

example_string

the string to be interpreted as R code

Details

This function takes a string that can be interpreted as r code and returns it formatted as a roxygen exmaple, including tags and output commented out.

It is meant to be used with the evalRd tag as ‘#’ @evalRd include_roxygen_example("print('a')")'

Value

a string that can be interpreted literally as a roxygen comment


jspaezp/sctree documentation built on April 30, 2020, 10:36 p.m.