Skip to content

Error R extension loading packages #25

@spiacenza

Description

@spiacenza

I am having problems using an existing NetLogo program (that previously worked on my old laptop) using the R extension. It appears to be an issue with accessing the R library when I run setup in the program, which loads the R packages (e.g. r:eval "library(dplyr)" ). I have tried downgrading to an older version of R (4.0.3; one that appears to have been tested with NetLogo 6.2, based on another conversation (https://groups.google.com/g/netlogo-users/c/qZo08-UMMRI/m/85-djrOTAQAJ).

I get this error:
Extension exception: Error in R-Extension: Error in Eval:
org.nlogo.api.ExtensionException: Error : package or namespace load failed for 'dplyr' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.3/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.

I have confirmed that the dplyr package is installed in the library, the user.properties file directs NetLogo to and the stats.dll file is also located in the directory stated above. I'm attaching a pic of the error message as well here:
Netlogo_R_error

Thanks in advance for any advice!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions