Checks installation of TauDEM and provides useful hints.
TauDEM installation and registration
Once you have installed TauDEM, add an environment variable
pointing to the correct path.
For instance on Ubuntu it could be adding this line in .Renviron
(see usethis::edit_r_environ()
)
and then re-starting R:
or, for just the session, running this line of R code:
Sys.setenv(TAUDEM_PATH = "/usr/local/taudem")
Examples
if (FALSE) { # interactive() && traudem::can_register_taudem()
try(taudem_sitrep(), silent = TRUE)
}
can_register_taudem()
#> [1] TRUE