input_config_value: Inputs value into any LER model config file

View source: R/input_config_value.R

input_config_valueR Documentation

Inputs value into any LER model config file

Description

Wrapper function for functions that input values into model config files

Usage

input_config_value(
  model,
  folder = ".",
  file,
  label,
  key,
  value,
  out_file = NULL
)

Arguments

model

string; name of a model in the LER package

folder

file path; to folder which contains the model folders generated by export_config()

file

filepath; to model-specific config file

label

string; which corresponds to section where the key is located

key

string; name of key in which to extract the value

value

string; name of value to input into config file

out_file

filepath; to write the output json file (optional); defaults to overwriting file if not specified

Examples

## Not run: 
input_config_value(model = "GOTM", file = "gotm.yaml",
  label = "turb_param", key = "k_min", value = 0.00001)

## End(Not run)


aemon-j/LakeEnsemblR documentation built on April 11, 2025, 10:09 p.m.