Learn R Programming

rtape (version 2.2)

rtapeAsList: Load the whole tape as a list.

Description

Load the whole tape as a list.

Usage

rtapeAsList(fNames)

Arguments

fNames
Name of the tape file to read; if this argument is a vector of several names, function behaves as reading a single tape made of all those tapes joined in a given order.

Value

Details

This function reads are the objects from the tape, in the order they were written on it, and returns them as a list.

Examples

Run this code
#Record something on the tape
rtapeAdd('tmp.tape',iris)
rtapeAdd('tmp.tape',sin(1:10))
#Read whole tape to the list, so we could examine it
rtapeAsList('tmp.tape')->stored
print(stored)
unlink('tmp.tape')

Run the code above in your browser using DataLab