JuliaInterop / RCall.jl

Call R from Julia
Other
319 stars 59 forks source link

ERROR: REvalError: Loading required package: mvtnorm #526

Open PharmCat opened 4 months ago

PharmCat commented 4 months ago

After clean install (install R and mvtnorm)

import Pkg
ENV["R_HOME"] = "C:\\Program Files\\R\\R-4.4.0"
Pkg.build("RCall")

call R

using RCall
R"library(mvtnorm)"

and have

ERROR: REvalError: Error: package or namespace load failed for 'mvtnorm' in inDL(x, as.logical(local), as.logical(now), ...):
 unable to load shared object 'C:/Program Files/R/R-4.4.0/library/stats/libs/x64/stats.dll':
  LoadLibrary failure:  �� ������ ��������� ������.

From R console library(mvtnorm) works fine.

palday commented 4 months ago

What happens if you force a reinstall from within RCall?

julia> using RCall
julia> R"""install.packages("mvtnorm")"""