duplicate: Create a copy of a native object

duplicateR Documentation

Create a copy of a native object

Description

This is a generic function that allows an R programmer to create a duplicate copy of a native C/C++-level object.

Usage

duplicate(x, ..., .finalizer = FALSE)

Arguments

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 (NativeSymbolInfo) or a string giving the name of a native symbol.

Details

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.

Author(s)

Duncan Temple Lang

See Also

The RGCCTranslationUnit package.

Garbage collection and Writing R Extensions Manual for information about finalizers.


omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.