duplicate | R Documentation |
This is a generic function that allows an R programmer to create a duplicate copy of a native C/C++-level object.
duplicate(x, ..., .finalizer = FALSE)
x |
the object to be cloned |
... |
additional parameters for methods |
.finalizer |
a value controlling the registration of a C-level
finalizer. This can be a logical value, a native symbol object
( |
When an interface to a C/C++ data structure is created, a copy routine should have been created and a method for the R reference class defined for this method.
Duncan Temple Lang
The RGCCTranslationUnit package.
Garbage collection and Writing R Extensions Manual for information about finalizers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.