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)

Arguments

project_path

path to project directory (string)

archived

needs to be set to true when reading from the rswap_saved archive (flag)

Value

Returns a list of dataframes. .$daily_output and .$custom_depth

Details

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