Write the ouptut list to disk either under a unique .RData file or three separated files:

  • Model Output (csv file)

  • Meteoroloy output (input to the model, csv file)

  • Model parameters (txt file)

write.results(
  FinalList,
  output = ".RData",
  Simulation_Name = NULL,
  Outpath = "Outputs",
  ...
)

Arguments

FinalList

The model output list

output

Output format. Character. ".RData" if single file, or anything else for 3 separate file. Default: ".RData"

Simulation_Name

The name of the simulation. Used for the name of the outputs. Default: NULL.

Outpath

The path to the folder to write on.

...

Further parameters to pass to data.table::fwrite(). Only used if output!=".RData".

Details

To re-import the output, the user should use base::readRDS()