Interaction between NetLogo(version 7.0.2) and R

In the recently downloaded NetLogo 7.0.2, all my extensions have vanished, and I have been unable to successfully achieve interaction between R and NetLogo. I would greatly appreciate your assistance. Many thanks!

Have you tried installing them through the extensions manager? Go to Tools>Extensions, find the one you need, and click install.

In what sense have they vanished? Are they no longer usable from code? Before 7.0.2, were you using NetLogo 6.4, or some other version of NetLogo 7? Many third-party extensions were not updated by their authors to work in NetLogo 7, and that would explain you not being able to find them.

Otherwise, if the list in the Extension Manager is simply empty, it’s possible that the configuration for the Extension Manager got messed up, which can often be fixed by deleting the configuration file. It’s the libraries.conf file in this folder relative to your home directory:

  • macOS: Library/Application Support/NetLogo
  • Windows: AppData\Roaming\NetLogo
  • Linux: .netlogo

After deleting that file, you can restart NetLogo, and it will download a new copy of the extensions list.

1 Like

Many thanks, the aforementioned issue has been successfully resolved! Once again, thank you for your response!
Additionally, I should like to consult you regarding whether you have utilised the NLRX package in R for running NetLogo simulation models and conducting sensitivity analyses? I have encountered some difficulties during my usage. I look forward to your insights.

I’m glad to hear that the issue is fixed. I would be interested to know which solution helped you.

As for NLRX: I, personally, have no experience with using package. But others here on the forum might have some insight.

Hi @Cui_wl ,

The nlrx package doesn’t support NetLogo 7. For that version, check out the logolink R package.

Cheers!

1 Like