Learn R Programming

exampletestr (version 1.3.1)

extract_examples_rd: Extract examples from a .Rd file as a character vector.

Description

This is a convenient wrapper to tools::Rd2ex which actually returns a character vector of the examples in the .Rd file.

Usage

extract_examples_rd(rd_file_path)

Arguments

rd_file_path

The path to the .Rd file.

Value

A character vector.

Examples

Run this code
# NOT RUN {
this_function_rd <- system.file("extdata", "str_detect.Rd",
                                package = "exampletestr")
extract_examples_rd(this_function_rd)
# }

Run the code above in your browser using DataLab