loadOrComputeCheckpoint: Load or compute a checkpoint

View source: R/buildComponent.R

loadOrComputeCheckpointR Documentation

Load or compute a checkpoint

Description

Load or compute a checkpoint

Usage

loadOrComputeCheckpoint(
  file,
  compute_fn,
  config,
  message_resume = NULL,
  message_compute = NULL
)

Arguments

file

The file path to load the checkpoint from.

compute_fn

The function to compute the checkpoint if it doesn't exist.

config

A list containing configuration parameters such as 'resume', 'verbose', and 'saveable'.

message_resume

Optional message to display when resuming from a checkpoint.

message_compute

Optional message to display when computing the checkpoint.

Value

The loaded or computed checkpoint.


BGmisc documentation built on June 11, 2025, 1:07 a.m.