save_rsprob: Save bd problem to disk

save_rsprobR Documentation

Save bd problem to disk

Description

After a problem is generated, its R representation is saved to disk so that it can be archived and re-used in future experiments without having to regenerate the problem. Saving it is also useful for reproducibility in that it allows re-creation of exactly the problem used in an experiment.

Usage

save_rsprob(rsprob, exp_root_dir)

Arguments

rsprob

a reserve selection problem object, e.g., a Xu_bd_problem

exp_root_dir

character string path to root directory of an experiment, usually parameters$fullOutputDir_NO_slash

Details

Writes to a file whose name contains:

  • the UUID of the problem

  • whether it's a basic problem or a wrapped problem

  • whether it's a correct or an apparent problem

Value

Returns input object with its checksum slot filled


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.