rchlumsk / RavenR

R package for handling Raven hydrologic modelling framework inputs, outputs, and diagnostics
36 stars 16 forks source link

rvn_run system call #95

Closed rarabzad closed 2 years ago

rarabzad commented 3 years ago

On Compute Canada clusters direct shell invoking can lead to problems since R gives an incorrect value to the environment variable LD_LIBRARY_PATH. See: https://docs.computecanada.ca/wiki/R look at subsection: Using system calls in R

Additionally for Linux users, a system permission has to be given to the Raven.exe to let the model to be executed, see below:

ravenexe <- paste0(system.file("extdata",package="RavenR"),"/Raven.exe") system(paste("chmod +x",ravenexe))