Rdz: Constructor for zipped R data archive

View source: R/zave.R

RdzR Documentation

Constructor for zipped R data archive

Description

This is a constructor function that creates a "reference" to a file that represents a zipped archive of individual R objects saved in the archive. The resulting object can be indexed by name and a table of contents can be retrieved to find the names of the variables it contains.

This function returns an object of class RdzArchive which extends ZipFileArchive-class and is intended only to provide a mechanism to conver the elements to R objects.

Usage

Rdz(filename, check = TRUE, class = "RdzArchive")

Arguments

filename

the name of the file

check

argument passed to zipArchive to control whether the meta-data about the entries in the zip file is computed.

class

the class of the resulting object, typically unspecified

Value

An object of class RdzArchive-class.

Author(s)

Duncan Temple Lang

Examples

 x = 1:10
 y = letters
 bob = zave(x, y, mtcars, other = x, file = "/tmp/bob.zip", bob = 1:10, zz = 2 * log(1:100), oo = rnorm(10))
 names(bob)
 bob$.toc
 bob[["y"]]
 bob$oo

omegahat/Rcompression documentation built on Nov. 29, 2023, 12:45 a.m.