dleutnant/swmmr

SWMM executable not found..

Sureshhett opened this issue · 2 comments

I get this warning when I run the swmmr library and run_swmm gives Error in file.exists(exec) : invalid 'file' argument.
all he commands were working fine and this started up with no change to any code in my script

much thanks for any help

Where lives your SWMM executable file?
What does getOption("swmmr.exec") print?

When the swmmr package is installed, it tries to find the executable in common directories and saves the file path in the R option "swmmr.exec". If you did install swmmr first, without a SWMM Version being installed, swmmr cannot find the executable and the option gets NULL.
If swmmr cannot find the executable, you still can set the exec parameter of swmmr::run_swmm.

Please check also the help file of run_swmm, i.e. ?swmmr::run_swmm.