Error in Julia_setup() : Julia is not found

566 Views Asked by At

I am trying to use the JuliaCall package to work with Julia in R. When I want to setup Julia using julia_setup I get an error. Here is the code:

install.packages("JuliaCall")
library(JuliaCall)
install_julia()
#> [1] "Installed Julia to /Users/quinten/Library/Application Support/org.R-project.R/R/JuliaCall/julia/1.8.4/Julia-1.8.app/Contents/Resources/julia"

julia <- julia_setup()
#> Error in julia_setup(): Julia is not found.

Created on 2022-12-28 with reprex v2.0.2

So I was wondering if anyone knows how to fix this error?


Edit: Trying julia_setup(rebuild = TRUE)

When I try to use julia_setup(rebuild = TRUE) I get a warning message that Julia-1.8 is damaged and can't be opened. If I want to move it to the trash bin it says:

JuliaCall::julia_setup(rebuild = TRUE)
sh: /Users/quinten/Library/Application Support/org.R-project.R/R/JuliaCall/julia/1.8.4/Julia-1.8.app/Contents/Resources/julia/bin/julia: No such file or directory
Error in JuliaCall::julia_setup(rebuild = TRUE) : Julia is not found.
0

There are 0 best solutions below