R: Escape backslashes and percent in Rd code

.bsdup {Rdpack} | R Documentation

## 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

### 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.

### Author(s)

Georgi N. Boshnakov

### Examples

    ##---- Should be DIRECTLY executable !! ----

[Package Rdpack version 0.10-1 Index]