fetch: Move Data Between Shared Memory and File Storage

fetchR Documentation

Move Data Between Shared Memory and File Storage

Description

These are generic functions for moving data in R objects between shared memory and file storage for sharing with other R processes.

Usage

fetch(object, ...)

flash(object, ...)

Arguments

object

An object with data to move.

...

Additional arguments to the matter constructor, chunk_colapply, chunk_rowapply, or chunk_lapply.

Details

The fetch methods for matter objects return new matter objects that use shared memory storage.

The flash methods for matter objects return new matter objects that use file storage.

Value

A new object (typically of the same class but not necessarily) with data in the specified storage format.

Author(s)

Kylie A. Bemis

See Also

matter

Examples

set.seed(1)
x <- as.matter(runif(10))
path(x)

# copy x into shared memory
y <- fetch(x)
path(y)

# copy y into file storage
z <- flash(y)
path(z)

kuwisdelu/matter documentation built on Oct. 19, 2024, 10:31 a.m.