Skip to contents

Load crop/irrigation/climate/soil scenarios

Usage

load_xxx_scenarios(
  category,
  path = try(getDataPath("Inputs/Scenarios", sprintf("%s_scenarios.csv",
    tools::toTitleCase(category)), cfg = cfg, use_cache = cfg$data$mode == "remote"),
    silent = TRUE),
  ...,
  cfg = loadConfig()
)

Arguments

category

character The category of scenarios to create. Can be one or more of "crop", "climate", "soil", and "irrigation".

path

character Path to the scenarios file.

...

Additional arguments to pass to create_xxx_scenarios().

cfg

a config object. Configuration to use. See loadConfig for details

Value

data.frame A data frame containing the scenarios for the specified category.