Learn R Programming

vcr (version 1.6.0)

Persisters: Cassette persisters

Description

Keeps track of the cassette persisters in a hash-like object

Usage

persister_fetch(x = "FileSystem", file_name)

Arguments

Public fields

persisters

(list) internal use, holds persister object

name

(character)

Methods


Method new()

Create a new Persisters object

Usage

Persisters$new(persisters = list(), name = "FileSystem")

Arguments

persisters

(list) a list

name

(character) Persister name, only option right now is "FileSystem"

Returns

A new Persisters object


Method clone()

The objects of this class are cloneable with this method.

Usage

Persisters$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

There's only one option: FileSystem Private Methods

persister_get()

Gets and sets a named persister

Examples

Run this code
(aa <- Persisters$new())
aa$name
aa$persisters
yaml_serializer <- aa$persisters$new()
yaml_serializer

Run the code above in your browser using DataLab