For a while, I had been calling R
functionalities from my Julia
code successfully with package RCall
. Recently, however, I updated the version of my R
installation, and now it seems the Julia
code is broken. I should say that I’m using VSCode
to run the .jl
file, and the attached R
’s version is the same as my latest installation of R
.
When I run the following lines:
using RCall
R"""
library(forecast)
"""
I get the following error message:
ERROR: REvalError: Warning: package ‘forecast’ was built under R version 4.3.3
Error: package or namespace load failed for ‘forecast’ in inDL(x, as.logical(local), as.logical(now), …):
unable to load shared object ‘C:/Users/----/Documents/R/win-library/4.1/rlang/libs/x64/rlang.dll’:
LoadLibrary failure: The specified procedure could not be found.
The thing is, I have installed package forecast
under R
version 4.3.3. If I call the package from the R
GUI, it works fine. I guess it might a problem with VSCode not “finding” whatever it has to find to make it work. I should add that I have added the path to R
’s exe file to the ‘User Settings’ in VSCode’s JSON file.
Anyone know how to solve this? Thank you in advance.