Code {PaRe} | R Documentation |
R6 Code class
Description
Class representing a piece of code.
Methods
Public methods
Method new()
Initializer method
Usage
Code$new(name, lines)
Arguments
name
(
character(1)
)
Name of Code object.lines
(
character(n)
)
Vector of lines Code object.
Returns
invisible(self)
Method print()
Overload generic print, to print Code object.
Usage
Code$print(...)
Arguments
...
further arguments passed to or from other methods. See print.
Returns
(character(n)
)
Method getLines()
Get method for lines.
Usage
Code$getLines()
Returns
(character(n)
) Vector of lines in the Code object.
Method getNLines()
Get method for number of lines.
Usage
Code$getNLines()
Returns
(numeric(1)
) Number of lines in the Code object.
Method getName()
Get method for Name.
Usage
Code$getName()
Returns
(character(1)
) Name of the Code object.
Method clone()
The objects of this class are cloneable with this method.
Usage
Code$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
Other Representations:
File
,
Function
,
Repository
[Package PaRe version 0.1.13 Index]