JuliaInterop / RCall.jl

Call R from Julia
Other
318 stars 59 forks source link

RCall installation failing with ENV = "*" #482

Open MaxMenzies opened 1 year ago

MaxMenzies commented 1 year ago

I'm following the instructions, ENV["R_Home"]="*" then using Pkg and Pkg.build("RCall") and getting the following error:

"ERROR: Error building RCall: Warning: 'r' already in 'channels' list, moving to the top Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... done

All requested packages already installed.

[ Info: Installing R via Conda. To use a different R installation, set the "R_HOME" environment variable and re-run Pkg.build("RCall"). [ Info: Running conda config --add channels r --file 'C:\Users\annoy\.julia\conda\3\x86_64\condarc-julia.yml' --force in root environment [ Info: Running conda install -y 'r-base>=3.4.0,<4' in root environment ERROR: LoadError: Could not find library C:\Users\annoy.julia\conda\3\x86_64\Library\bin\R\bin\x64\R.dll. Make sure that R shared library exists. Stacktrace:"

image

frankier commented 5 months ago

I'm not sure what happened there since there seem to be two levels of bin in your R_HOME

There have been some changes to this in the newest version. Perhaps you could try again with new versions of Julia and RCall.jl and close this if it's no longer a problem?