Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NLRX package issue #67

Open
Banerjee15 opened this issue Jun 24, 2022 · 4 comments
Open

NLRX package issue #67

Banerjee15 opened this issue Jun 24, 2022 · 4 comments

Comments

@Banerjee15
Copy link

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”

@bitbacchus
Copy link
Collaborator

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.

@Banerjee15
Copy link
Author

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\nlrx_seed
-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._

@Banerjee15
Copy link
Author

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....

@m4x74
Copy link

m4x74 commented Sep 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants