testex-rd-example-helpers {testex}R Documentation

Rd Example Parsing Helpers

Description

Rd Example Parsing Helpers

Usage

rd_extract_examples(rd)

rd_code_as_string(rd)

split_testonly_as_expr(rd)

split_testonly(rd)

Arguments

rd

An Rd object

Value

The examples section of an Rd object

A formatted Rd example

An interlaced list of expressions, either representing example code or tests. The names of the list are either ⁠\testonly⁠ or RDCODE depending on the originating source of the expression.

A list of Rd tag contents

Functions


[Package testex version 0.2.0 Index]