VariableReference-class | R Documentation |
This class allows us to represent a reference to a native variable. We hold the address of the native variable in our R object and can access the value of it from within R via this object. We do not hold the value of the variable in the R object but the address of the native variable. This allows us to query its value at any moment, and allow us to obtain its value should it change. In some ways, this acts like a dynamic variable. We can get the value of the native variable at any time but the value assigned to that variable may change at any time (due to native code).
Objects can be created by calls of the form new("VariableReference", ...)
.
ref
:Object of class "RC++Reference"
This is the address of/reference to the native object.
Class "ANY"
, directly, with explicit coerce.
signature(x = "VariableReference")
: ...
signature(from = "VariableReference", to =
"ANY")
: coerce the value of the native variable to an R object
signature(from = "VariableReference", to =
"integer")
: coerce the value of the native variable to an R integer vector
signature(from = "VariableReference", to =
"logical")
: coerce the value of the native variable to an R
logical vector
signature(from = "VariableReference", to =
"numeric")
: coerce the value of the native variable to an R
numeric vector
Duncan Temple Lang
The RGCCTranslationUnit
package
showClass("VariableReference")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.