JuliaInterop / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
267 stars 36 forks source link

How to check if a Julia session/environment is already started #141

Closed jjlynch2 closed 4 years ago

jjlynch2 commented 4 years ago

I'm using JuliaCall in a web application, which loads in Julia source code after running julia_setup(). However, each new web session will attempt to load in the source code, which causes quite a significant delay for other users. Is there a way to check if the Julia environment has already been loaded so I may skip attempting to load in source code?

jjlynch2 commented 4 years ago

Solved my own issue. Ended up calling julia_exists to check for a function I import. If there is a better way feel free to let me know.