redDropOut | R Documentation |
Removes blank lines or the submit block end marker from the REDUCE output.
redDropOut(x, what)
x |
a character vector containing REDUCE output |
what |
a character string describing what to
drop. |
redDropOut
is called by redExec
if the option
drop.blank.lines
is TRUE, so you generally do not need to
call it explicity. If you have forgotten to set the option, you can
use this function to remove blank lines.
The purpose of what='marker'
is to remove the end of block
marker described in the details section of redExec
. This
may be useful if you need to process a REDUCE transcript not produced
by redcas
.
When removing blank lines and the output is not LaTeX or the switch NAT is on, output may be difficult to read and difficult to parse.
The input vector with the corresponding elements removed.
Martin Gregory
redExec
x <- c("first", "", "last")
## this will return elements 1 and 3:
redDropOut(x, "blank")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.