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()


SpaDES.core documentation built on Nov. 10, 2023, 5:08 p.m.