TypedPointer | R Documentation |
This represents an instance of a pointer (not a generic, reusable type). We have the address in memory for the pointer value and also the type of data structure to which it points.
typedPointer(ptr, elType, obj = new("TypedPointer"))
ptr |
the value of this pointer, i.e. the location in memory to
which it points. This must be an |
elType |
the type of the data to which the pointer |
obj |
an instance of the class to return. Generally this will not be specified by the caller. It is provided as a parameter so that one can create subclasses and then use this contructor for these. |
The function typedPointer
returns the updated obj
,
typically the default class TypedPointer
.
Duncan Temple Lang
FFIType-class
for other classes and types.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.