Skip to contents

Read SuperConfig object from TOML file that was written with write_toml().

Usage

read_config(file)

Arguments

file

Character: Path to input TOML file.

Value

SuperConfig object.

Author

EDG

Examples

# Create a SuperConfig object
x <- setup_SuperConfig(
  dat_training_path = "~/Data/iris.csv",
  algorithm = "LightRF",
  hyperparameters = setup_LightRF()
)
# Write TOML file
tmpdir <- tempdir()
tmpfile <- file.path(tmpdir, "rtemis_test.toml")
write_toml(x, tmpfile)
#> 2026-03-15 07:50:04 
#>  Created file: /var/folders/rb/99nqfz7s2rb6d_p0d6yxtbxc0000gn/T//RtmpRkkpzT/rtemis_test.toml
#>  [write_lines]
# Read config from TOML file
x_read <- read_config(tmpfile)