Open ctroupin opened 6 months ago
just in case you don't know about callr, for when you want to call R in different sessions (from what I understood): https://callr.r-lib.org/
Thanks Maelle, I didn't know about the package, I will test that soon!
Testing under Windows by a colleague:
> install.packages("JuliaCall")
Installing package into ‘C:/Users/Administrator/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/JuliaCall_0.17.5.zip'
Content type 'application/zip' length 1264289 bytes (1.2 MB)
downloaded 1.2 MB
package ‘JuliaCall’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpuSmFVL\downloaded_packages
> library(JuliaCall)
Warning message:
package ‘JuliaCall’ was built under R version 4.2.3
> julia_setup(JULIA_HOME = path.expand("~/.juliaup/bin/"))
Error in julia_setup(JULIA_HOME = path.expand("~/.juliaup/bin/")) :
Julia is not found.
Failure due to the Julia path not specified.
Seems to work without any issue.
> julia_setup(JULIA_HOME = "C:/Users/Administrator/.julia/juliaup/julia-1.10.1+0.x64.w64.mingw32/bin")
Julia version 1.10.1 at location C:\Users\ADMINI~1\JULIA~1\juliaup\JULIA-~1.MIN\bin will be used.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.
> julia_install_package_if_needed("DIVAnd")
NULL
> julia_install_package_if_needed("DIVAnd")
> julia_command("using DIVAnd")
Summary
We experience issues due to different versions of the shared libraries. One setting allows one to work with
DIVAnd
, while otherR
libraries fail. The other setting allows the opposite.How to reproduce?
Setting 1
curl -fsSL https://install.julialang.org | sh
R
:The last command should give an error:
Setting 2
Before starting the
R
session we set the environment variable:The previous commands should not work:
Issue
Now we can try to load another library, for example
ncdf4