microsoft / microsoft-r-open

Microsoft R Open Source
212 stars 69 forks source link

Incorrect PATH when installing via conda on Mac #23

Closed poliquin closed 5 years ago

poliquin commented 7 years ago

I am not sure where this issue should be reported, but installing MRO via the conda package manager on a Mac does not currently work as expected due to a minor issue with the R_HOME environment variable in r-activate.sh.

Is there an issue tracker for the Microsoft R Open anaconda channel?

To reproduce on macOS 10.12.3 using conda 4.3.8...

conda install -c mro r
r
/Users/me/anaconda/bin/r: line 207: /etc/ldpaths: No such file or directory

The issue is related to https://github.com/conda/conda/issues/2312. The script r-activate.sh currently expects $CONDA_ENV_PATH to reference the conda environment path, but this variable no longer exists in recent versions of the conda activate script. The fix is to replace this environment variable with $CONDA_PREFIX.

@mingwandroid, are you the person responsible for this script?

j-martens commented 7 years ago

Hello, We did not create this Anaconda package. We recommend that you contact the package maintainer rdonnelly who uploaded the package. Thank you.

matrs commented 7 years ago

Same problem here ( 2017 ), but using linux 3.10.0-229.1.2.el7.x86_64 Clean Install R MRO using conda, then $ R my_user/anaconda3/envs/r/bin/R: line 207: /etc/ldpaths: No such file or directory

mingwandroid commented 7 years ago

These conda MRO packages are deprecated.