saveFitRandom: Manage functions treated as random by :=

View source: R/save.R

saveFitRandomR Documentation

Manage functions treated as random by ⁠:=⁠

Description

Functions registered here are saved with random-state metadata so cached restores behave like the original call was run again.

Usage

saveFitRandom(fun = NULL, remove = FALSE)

Arguments

fun

Function name(s) to add or remove. If NULL, the current registry is returned without modification.

remove

Boolean indicating if fun should be removed from the registry instead of added.

Value

Character vector of registered function names.

Author(s)

Matthew L. Fidler

Examples

saveFitRandom()
saveFitRandom("myRandomFun")
saveFitRandom("myRandomFun", remove=TRUE)

nlmixr2save documentation built on Sept. 26, 2026, 1:07 a.m.