Open Banerjee15 opened 2 years ago
I don't know ;-)
But if you can post a concise piece of code so we can reproduce the error, I'll have a look.
Okay, so I was just testing the NLRX code for the first time on my computer with the 'wolf sheep predation' model - code from here - https://github.com/ropensci/nlrx - and I have already set the required JAVA environment as well. The initial part of the code ran fine, but when I am trying to do this 'results <- run_nl_all(nl = nl)', I am getting the following error,
_The system cannot find the path specified.
Error in util_gather_results(nl, outfile, seed, siminputrow) :
Temporary simulation output file not found: C:\Users\baner\AppData\Local\Temp\Rtmpuo8ZLD\nlrxseed-2122382587_row_1_3dc0290f214b.csv.
Either the simulation did not run or crashed, check the debugging section in ??run_nl_all() for help.
In addition: Warning message:
The path
argument of write_lines()
is deprecated as of readr 1.4.0.
Please use the file
argument instead.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings()
to see where this warning was generated._
I am new to using R and the NLRX package, so any help will be hugely appreciated, sorry if this is a very basic question....
Since recently I'm running into the same error. I'm using the 'get started'-example (https://docs.ropensci.org/nlrx/articles/getstarted.html#complete-code-example), only adjusted the paths. The path of the temporary file (named in the error message) exists and I can write from within RStudio into that folder. The named file itself is not in that folder, but other nlrx files (no csv though).
I tried to set the R temp path manually, to reinstall R, Rstudio and NetLogo and tested the skript on another machine. Nothing worked. Interestingly the same code (with adjusted paths) works on my RStudioServer.
Why am I getting this error in R studio while running experiment,
Error in (function (cl, name, valueClass) : ‘experiment’ is not a slot in class “function”