Skip to content

Instantly share code, notes, and snippets.

@stefanjwojcik
Created February 21, 2021 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanjwojcik/89e6719718b222d8e653a7fa03c54659 to your computer and use it in GitHub Desktop.
Save stefanjwojcik/89e6719718b222d8e653a7fa03c54659 to your computer and use it in GitHub Desktop.
Setting up JuliaCall without Segfaults

To get a working copy of JuliaCall in R

#Problem I was solving:

  • I was getting a SegFault Error when trying to load JuliaCall from R.
  • I was also getting package not found errors from certain pkgs prescribed by my startup.jl file

Versions

R version: R version 4.0.3 (2020-10-10) Julia: I let JuliaCall install a new version of julia at this location: /Users/swojcik/Library/Application\ Support/JuliaCall/julia/v1.5.0/bin/julia

In the startup.jl file, I set the R home directory as: ENV["R_HOME"] = "/Library/Frameworks/R.framework/Resources"

In the version of Julia, I ran: using Pkg Pkg.build("RCall")

Then, in R, I typed:

library(JuliaCall) julia_setup()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment