
Last chance! 50% off unlimited learning
Sale ends in
Object
~~|
~~+--
SmartComments
~~~~~~~|
~~~~~~~+--
VComments
Directly known subclasses:
LComments
public static class VComments
extends SmartComments
The VComments class.VComments(letter="V", verboseName="verbose", ...)
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, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, saveVerbose
class.
Here is a list of VComments and the Rcode that replaces each of them
by the compiler:
Constructors
filename <- system.file("data-ex/exampleVComments.R", package="R.utils")
lines <- readLines(filename)
cat("Code before preprocessing:
")
displayCode(code=lines, pager="console")
lines <- VComments$compile(lines)
cat("Code after preprocessing:
")
displayCode(code=lines, pager="console")
Run the code above in your browser using DataLab