View source: R/modelSetupRun.R
settings_setFilePaths | R Documentation |
list
/
This function updates the FILE_PATHS domain of a CWatM settings named list
based on user-defined values.
settings_setFilePaths( settingsList, PathRoot = NULL, PathOut = NULL, PathMaps = NULL, PathMeteo = NULL )
settingsList |
named |
PathRoot |
|
PathOut |
|
PathMaps |
|
PathMeteo |
|
The function updates the settings file FILE_PATHS domain allowing the user to define its own paths to the model data and outputs.
By convention, both PathMaps
and PathMeteo
are sub-folders of PathRoot
. Users are encourages to provide each of these argument with the
full pat. if a sub-folder of PathRoot
the function rewrites the path as: "$(PathRoot)/Path_to_data". Alternatively, the user can use the following format to
provide a relative path: "./Path_to_data", whereas the "./" stands for the current working directory.
named list
; a CWatM settings list.
## Not run: # set workinf directory setwd("d:/cwatm/model_data") # load a settings file template to a named `list` my_settings <- settings_ini2list(inipath = "./cwatm/settings_template.ini") # set user-defined paths root = "d:/cwatm/model_data" maps = "d:/cwatm/model_data/maps" meteo = "./climate" my_settings <- settings_setFilePaths(settingsList = my_settings, PathRoot = root, PathOut = NULL, PathMaps = maps, PathMeteo = meteo) ## End(Not run)/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.