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. |
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
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")
Run the code above in your browser using DataLab