VComments

0th

Percentile

The VComments class

Package: R.utils Class VComments Object ~~| ~~+--SmartComments ~~~~~~~| ~~~~~~~+--VComments Directly known subclasses: LComments public static class VComments extends SmartComments The VComments class.

Keywords
classes, programming, IO
Usage
VComments(letter="V", verboseName="verbose", ...)
Arguments
letter
The smart letter.
verboseName
The name of the verbose object.
...
Not used.
Details

The 'v' in VComments stands for 'verbose', because of its relationship to the Verbose class. Here is a list of VComments and the Rcode that replaces each of them by the compiler: Constructors

  • \#V0\#
{[] - NullVerbose()} #V1#{[] - Verbose()}

bold

  • Controls
  • Enters and exits
  • Simple output
  • Output messages

cr

    • \#V=\#
    {[] - Sets the name of the object. Default is 'verbose'.} #V^#{ - setThreshold(, )} #V?#{ - if (isVisible()) { }} #V@#{ - setDefaultLevel(, )} #Vm#{ - (, )}
    • \#V+\#
    {[] - enter(, )} #V-#{[] - exit(, )} #V!#{[] - pushState() on.exit(popState()) If , enter(, )}
    • \#Vn\#
    { - newline()} #Vr#{ - ruler()} #Vt#{ - timestamp()} #Vw#{[] - warnings(<verbose>, <title>)}
    • \#Vc\#
    {[] - cat(, )} #Ve#{ - eval(, )} #Vh#{ - header(, )} #Vp#{ - print(, )} #Vs#{ - summary(, )} #Vz#{ - str(, )}

Aliases
  • VComments
Examples
filename <- system.file("data-ex/exampleVComments.R", package="R.utils")
lines <- readLines(filename)

cat("Code before preprocessing:
")
displayCode(lines)

lines <- VComments$compile(lines)

cat("Code after preprocessing:
")
displayCode(lines)
Documentation reproduced from package R.utils, version 0.5.5, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.