check_config | R Documentation |
Check if created LPJmL config JSON files (write_config()
) are
valid and are ready to be used for simulations using lpjcheck for multiple
files.
check_config(
x,
model_path = ".",
sim_path = NULL,
return_output = FALSE,
raise_error = FALSE,
output_path = NULL
)
x |
|
model_path |
Character string providing the path to LPJmL
(equal to |
sim_path |
Character string defining path where all simulation data are
written, including output, restart and configuration files. If |
return_output |
Parameter affecting the output. If |
raise_error |
Logical. Whether to raise an error if sub-process has
non-zero exit status. Defaults to |
output_path |
Argument is deprecated as of version 1.0; use sim_path instead. |
NULL.
## Not run:
library(tibble)
library(lpjmlkit)
model_path <- "./LPJmL_internal"
sim_path <-"./my_runs"
# Basic usage
my_params <- tibble(
sim_name = c("scen1", "scen2"),
random_seed = c(12, 404),
pftpar.1.name = c("first_tree", NA),
param.k_temp = c(NA, 0.03),
new_phenology = c(TRUE, FALSE)
)
config_details <- write_config(
x = my_params,
model_path = model_path,
sim_path = sim_path
)
check_config(x = config_details,
model_path = model_path,
sim_path = sim_path,
return_output = FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.