Skip to contents

Extracts the example SWAT input files stored in swat_txtinout_data and writes them under the TxtInOut subfolder of path. This provides a self-contained example SWAT project for testing and tutorials.

Usage

get_swat_example(path = ".", overwrite = FALSE)

Arguments

path

character. Destination directory where files will be written. Defaults to the current working directory.

overwrite

logical. Whether to overwrite existing files. Defaults to FALSE.

Value

Invisibly returns the full path to the created TxtInOut directory.

See also

swat_txtinout_data

Other Project setup and execution: download_swat_exe(), run_swat(), run_swat_exe(), setup_swat()

Examples

# \donttest{
# Write files to a temporary directory
path <- tempdir()
get_swat_example(path)

# Inspect files
list.files(file.path(path, "TxtInOut"))
# }