strippedConsoleText: Strip output, messages and command/continuation prompts from...

Description Usage Arguments Value

View source: R/ccopy.R

Description

Utility function. For a vector of character strings, each string that does not commence either with "> " (the console command prompt) or "+ " (the console continuation prompt) is removed. These prompt characters are then deleted from each of the remaining strings.

Usage

1

Arguments

charVec

A character vector (as might be read from the system clipboard, where each element corresponds a new line of text). Intended to contain text copied from the R console.

Value

A character vector obtained from charVec by deleting those elements not commencing with "> " or "+ ", and from the remaining strings deleting these first two characters.


ljrendell/ccopy documentation built on May 21, 2019, 7:33 a.m.