Object
~~|
~~+--
SmartComments
Directly known subclasses: LComments, VComments
public abstract static class SmartComments extends Object
Abstract class SmartComments.
SmartComments(letter=NA, ...)
character
. compile |
|
Preprocess a vector of code lines. | |
convertComment |
Converts a single smart comment to R code. |
parse |
|
Parses one single smart comment. | |
reset |
Resets a SmartComments compiler. |
validate |
|
Validates the compiled lines. |
\#\#
.Example code with two smart comments (VComments):
x <- 2 \#V1\# threshold=-1 \#Vc\# A v-comment log message cat("Hello world")which after compilation becomes
x <- 2 verbose <- Verbose(threshold=-1) if (verbose) { cat(verbose, "A v-comment log message"); } cat("Hello world")
VComments
.