This function reads the output of the SWAP model for the last run of the
given project_path
. It can also be used to read the results of saved runs
in the "/rswap_saved" folder if archived
is set to TRUE
.
read_swap_output(project_path, archived = F)
path to project directory (string)
needs to be set to true when reading from the rswap_saved archive (flag)
Returns a list of dataframes. .$daily_output
and .$custom_depth
Currently, the function only returns the data needed by the rest of the package, but this will be expanded over time to return all SWAP output