get_example_lines: Get the examples lines from a source code file.

View source: R/get_example_lines.R

get_example_linesR Documentation

Get the examples lines from a source code file.

Description

User provides the source code file path. This a a simplistic function that simply returns lines between @examples and the next line that starts with #' @, or anything not #'.

Usage

get_example_lines(file = stdin())

Arguments

file

character vector of length 1 with the file to extract example code from.

Value

Character vector with one lines from the examples section of the code.


rmsharp/rmsutilityr documentation built on Feb. 13, 2024, 6:01 p.m.