VComments {R.utils} | R Documentation |
Package: R.utils
Class VComments
Object
~~|
~~+--
SmartComments
~~~~~~~|
~~~~~~~+--
VComments
Directly known subclasses:
LComments
public static class VComments
extends SmartComments
The VComments class.
VComments(letter="V", verboseName="verbose", ...)
letter |
The smart letter. |
verboseName |
The name of the verbose object. |
... |
Not used. |
The 'v' in VComments stands for 'verbose', because of its relationship
to the Verbose
class.
Here is a list of VComments and the R code that replaces each of them by the compiler:
Constructors
Controls
Enters and exits
Simple output
Output messages
Methods:
convertComment | Converts a verbose comment to R code. | |
reset | Resets a VComments compiler. | |
validate | Validates the compiled lines. |
Methods inherited from SmartComments:
compile, convertComment, parse, reset, validate
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save
Henrik Bengtsson (http://www.braju.com/R/)
filename <- system.file("data-ex/exampleVComments.R", package="R.utils") lines <- readLines(filename) cat("Code before preprocessing:\n") displayCode(code=lines, pager="console") lines <- VComments$compile(lines) cat("Code after preprocessing:\n") displayCode(code=lines, pager="console")