0

I'm getting an error when running the julia set up command

jl_home<-"C:/Users/[INSERT_USER_HERE]/AppData/Local/Programs/Julia-1.11.4/bin"
julia_setup(jl_home)

returns:

Julia version 1.11.4 at location C:\Users\[INSERT_USER_HERE]\AppData\Local\Programs\JULIA-~1.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"] = "C:/PROGRA~1/R/R-45~1.0";Base.include(Main,"C:/Users/[INSERT_USER_HERE]/AppData/Local/R/win-library/4.5/JuliaCall/julia/setup.jl") in Julia.
                        To have more helpful error messages,
                        you could considering running the command in Julia directly

I've attempted to run this in julia with the following results:

julia> ENV["R_HOME"] = "C:/PROGRA~1/R/R-45~1.0";Base.include(Main,"C:/Users/[INSERT_USER_HERE]/AppData/Local/R/win-library/4.5/JuliaCall/julia/setup.jl")
WARNING: replacing module JuliaCall.
ERROR: LoadError: could not load symbol "SET_SYMVALUE":
The specified procedure could not be found.
in expression starting at C:\Users\[INSERT_USER_HERE]\AppData\Local\R\win-library\4.5\JuliaCall\julia\display\RmdJulia.jl:6
in expression starting at C:\Users\[INSERT_USER_HERE]\AppData\Local\R\win-library\4.5\JuliaCall\julia\setup.jl:16

I'm running R version 4.5.0 (2025-04-11 ucrt) rtools45 Julia Version 1.11.4 (2025-03-10) the other loaded packages are devtools, dplyr, and terra, all with the latest versions

I've attempted to reinstall all of the programs and have added julia to path with no success, this issue seemingly happened without any accompanying updates so I'm at a loss for how to proceed.

2
  • 1
    additionally seems similar to this issue: github.com/JuliaInterop/RCall.jl/issues/566 Commented May 5 at 16:12
  • On further thought, I deleted my previous comment suggesting r was not the best path. If your julia generally works just fine without changing the R_HOME and including JuliaCall/julia/setup.jl, then it's definitely on the R package side. Sorry for the misdirection. Commented May 5 at 16:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.