Skip to contents

Reconstruct a module from a previously pinned configuration. This allows you to load optimized modules in new sessions or different projects.

Usage

restore_module_config(config, registry = list(), trusted = FALSE)

Arguments

config

A configuration list (from pins::pin_read())

registry

Named runtime registry used to resolve stored IDs.

trusted

Whether embedded runtime values may be restored. The default is FALSE.

Value

A DSPrrr module with the restored configuration

Examples

if (FALSE) { # \dontrun{
# Read pinned config and restore module
board <- pins::board_folder("pins")
config <- pins::pin_read(board, "sentiment-classifier-v1")
mod <- restore_module_config(config)

# Use the restored module
result <- run(mod, text = "This is great!", .llm = llm)
} # }