Skip to contents

Adds or updates a parameter entry in a TOML lookup file. The parameterization value is validated against known types.

Usage

add_parameter_to_lookup(
  path,
  name,
  display = NULL,
  desc = NULL,
  unit = NULL,
  parameterization = NULL,
  overwrite = FALSE
)

Arguments

path

Path to the lookup.toml file

name

Parameter name (e.g., "TVCL", "OM1")

display

Display name for tables (optional)

desc

Description text (optional)

unit

Unit string (optional)

parameterization

Parameterization type (optional). Accepts raw values (EXP, LOG, PROP, ADD, etc.) or canonical values (LogNormal, Proportional, AddErr, LogAddErr, Logit, Identity).

overwrite

If TRUE, overwrite existing entry. Default FALSE.

Value

Invisibly returns the path to the lookup file