makeMemoisable: Make 'simList' correctly work with 'memoise'

makeMemoisable.simListR Documentation

Make simList correctly work with memoise

Description

Because of the environment slot, simList objects don't correctly memoise a simList. This method for simList converts the object to a simList_ first.

Usage

## S3 method for class 'simList'
makeMemoisable(x)

## S3 method for class 'simList_'
unmakeMemoisable(x)

Arguments

x

An object to make memoisable. See individual methods in other packages.

Value

A simList_ object or a simList, in the case of unmakeMemoisable.

See Also

reproducible::makeMemoisable()


PredictiveEcology/SpaDES.core documentation built on April 27, 2024, 1:15 p.m.