ropensci / nlrx

nlrx NetLogo R
https://docs.ropensci.org/nlrx
GNU General Public License v3.0
77 stars 12 forks source link

"java.lang.Exception: Unable to open model " [tilde ≠ home] #63

Closed ereineke closed 1 year ago

ereineke commented 2 years ago

I saved my NetLogo model under ~/model.nlogo and set modelpath = "~/model.nlogo".

Trying to run nlrx::run_nl_all(nl) I got the following error message: Exception in thread "main" java.lang.Exception: Unable to open model with current format: /home/username/~/model.nlogo

Fix: Set modelpath = "/home/username/model.nlogo" (or use relative paths). It's not possible to indicate your home directory using ~. The same applies to nlpath.

[Using Ubuntu 20.04.4]

bitbacchus commented 2 years ago

Most likely #63 and #62 are the same issues.

nldoc commented 1 year ago

fixed with #72