dust_repair_environment: Repair dust environment

View source: R/compile.R

dust_repair_environmentR Documentation

Repair dust environment

Description

Repair the environment of a dust object created by [dust] and then saved and reloaded by [saveRDS] and [readRDS]. Because we use a fake temporary package to hold the generated code, it will not ordinarily be loaded properly without using this.

Usage

dust_repair_environment(generator, quiet = FALSE)

Arguments

generator

The dust generator (also works with mode generators)

quiet

Logical, indicating if we should be quiet (default prints some progress information)

Value

Nothing, called for its side effects


mrc-ide/dust documentation built on Nov. 28, 2022, 10:06 p.m.