Rdpack (version 2.6)

.bsdup: Escape backslashes and percent in Rd code

Description

Escape backslashes and percent in Rd code.

Usage

.bspercent(x)

.anypercent(x)

Arguments

x

a character string

Author

Georgi N. Boshnakov

Details

.bsdup(x) duplicates backslashes.

.bspercent(x) escapes percent signs.

.anypercent(x) also escapes percent signs but but only if the Rd_tag attribute of x is not COMMENT.

Examples

Run this code
##---- Should be DIRECTLY executable !! ----

Run the code above in your browser using DataLab