JuliaPy / Conda.jl

Conda managing Julia binary dependencies
Other
174 stars 57 forks source link

Unable to use R and RCall installed via conda.jl #102

Closed abhi18av closed 6 years ago

abhi18av commented 6 years ago

Hi JuliaPy team :)

I've been gearing up to introduce Julia to my organization where R , Python and Conda are heavily used. So, I was evaluating this package as a possible solution to tie the goals together.

I've setup conda, conda-forge and python properly


using Conda

Conda.list()

Conda.add_channel("conda-forge")

Here's the issue I'm running into

Conda.add("r-base")

# TODO Fix the path issues
ENV["LD_LIBRARY_PATH"] = "/Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/Conda/deps/usr/lib/R/lib/libR.dylib"
Pkg.build("RCall")

using RCall
R"rnorm(10)"

However calling Python2 from Julia works fine

ENV["PYTHON"] = "/Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/Conda/deps/usr/bin/python2.7"
Pkg.build("PyCall")

using PyCall

@pyimport sys
sys.version

Could you please help me out to set the path properly for R ?

abhi18av commented 6 years ago

The error message is as follows

validate_libR(::String) at /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/RCall/src/setup.jl:15
 [2] locate_Rhome_libR() at /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/RCall/src/setup.jl:114
 [3] include_from_node1(::String) at ./loading.jl:576
 [4] include(::String) at ./sysimg.jl:14
 [5] include_from_node1(::String) at ./loading.jl:576
 [6] include(::String) at ./sysimg.jl:14
 [7] anonymous at ./<missing>:2
while loading /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/RCall/src/setup.jl, in expression starting on line 121
while loading /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/RCall/src/RCall.jl, in expression starting on line 41
abhi18av commented 6 years ago

Has been resolved here https://github.com/JuliaInterop/RCall.jl/issues/224#issuecomment-364757186