diffeqr icon indicating copy to clipboard operation
diffeqr copied to clipboard

Not working with R 4.5.0 (potentially on MAC M2)

Open yoninazarathy opened this issue 4 months ago • 2 comments

I am on an Apple M2 Pro and downloaded the latest R version as of now ([R-4.5.0-arm64.pkg SHA1-hash: a47d9579664f0ca87), see: https://cran.rstudio.com/

In the R Console:

> de <- diffeqr::diffeq_setup()
trying URL 'https://julialang-s3.julialang.org/bin/versions.json'
Content type 'application/json' length 1538827 bytes (1.5 MB)
==================================================
downloaded 1.5 MB

trying URL 'https://julialang-s3.julialang.org/bin/mac/aarch64/1.9/julia-1.9.4-macaarch64.tar.gz'
Content type 'application/x-tar' length 119559478 bytes (114.0 MB)
==================================================
downloaded 114.0 MB

[1] "Installed Julia to (OMITTED)....Library/Application Support/org.R-project.R/R/JuliaCall/julia/1.9.4/julia-1.9.4"
Julia version 1.9.4 at location (OMITTED)...Library/Application Support/org.R-project.R/R/JuliaCall/julia/1.9.4/julia-1.9.4/bin will be used.
Loading setup script for JuliaCall...
Error in .julia$cmd(paste0(Rhomeset, "Base.include(Main,\"", system.file("julia/setup.jl",  : 
  Error happens when you try to execute command ENV["R_HOME"] = "/Library/Frameworks/R.framework/Resources";Base.include(Main,"/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/JuliaCall/julia/setup.jl") in Julia.
                        To have more helpful error messages,
                        you could considering running the command in Julia directly
In addition: Warning message:
In system2("bash", "-l -c 'which julia'", stdout = TRUE) :
  running command ''bash' -l -c 'which julia'' had status 1
> 

I could only get it to work with an older R version, 4.3.3.

yoninazarathy avatar Jun 09 '25 05:06 yoninazarathy