wrap_altrep {Travel}R Documentation

Create a new ALTREP object from an R ALTREP

Description

Create a new ALTREP object from an R ALTREP, the new ALTREP object owns a data pointer. However, it is a dummy pointer in the sense that the data is not in the memory. The pointer can be operated as a normal pointer but the request of accessing the data will be send to the wrapped ALTREP object.

Usage

wrap_altrep(x)

Arguments

x

an ALTREP object

Value

A new ALTREP object

Examples

x <- 1:10
y <- wrap_altrep(x)

[Package Travel version 1.1.1 Index]