-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dplyr: namespace ‘Rcpp’ 0.12.14 is being loaded, but >= 0.12.15 is required #6413
Comments
It appears that conda is using the wrong
|
Interesting, but you are installing |
Yeah,
I'm definitely calling R installed in the test conda environment. hmmm... what am I missing? |
My base conda env doesn't have |
I checked I still wonder why |
That is an R issue, afaik. R by default looks into your HOME directory. Nothing conda can do here I think. Or we patch R to not do so? |
It's weird though that my older conda install ( |
All I know is that this is an R thing. Python does not have this problem. |
OK. It does appear like a potential big issue if R is looking outside of the conda env. This could reduce the reproducibility of conda envs. Any ideas on the best way to permanently remove my HOME R install libPath from the conda R libPaths? Permanently adding to the libPaths seems easier than permanently removing a specific libPath. |
I tried downgrading r-base from R 3.4.1 to R 3.3.2. For R 3.3.2, my libPaths just includes the conda env, and not my HOME R install, so it's just the newer versions of r-base that look into the HOME directory for an R install. |
I moved my HOME R install (instead of completely removing it), and all of my conda environments that use R 3.4.1 seem to have been relying on my HOME R install to some extent. So moving my R install seems to have broken all of my conda environments (at least for loading R packages), and this means that my conda envs were not fully isolated and thus they cannot be fully reproduced with a yaml file of the packages in the environment. I'm just glad I didn't completely remove my HOME dir R install... |
@nick-youngblut Yes, it is super frustrating that conda does not isolate itself by default. That is what everyone expects it to do, so usually the errors are more subtle. For example, one of your collaborators can install your conda environment defined by an See conda-forge/r-base-feedstock#37 for an extended discussion. Unfortunately the core conda team is not overly interested in fixing this, so I don't see anything changing anytime soon. It's a shame because this is a serious weakness.
@bgruening Not true. conda will also use user-installed Python packages over conda packages. It's just that it is less common for Python users to have user-installed packages compared to R users due to differences in |
@jdblischak this problem is only partially about packages. The problem is Do you know any fancy way how we can avoid this with R? Would be cool to know as there are many users having problems with this. |
@bgruening That error is completely from a package path issue. The R user library was listed before the conda R library, so the wrong version of Rcpp was loaded. Python behaves the same way. If I install an old version of numpy in my Python user library and then load pandas that is installed in my conda environment, Python throws an error:
Sure, there are also ways to get around it in R. But the point is that this requires manual intervention. And it also requires that users understand that their conda environments are not isolated from their user installation.
The solution analogous to Python setting But I think that conda should handle this by itself (just like |
From a normal Ubuntu 18.04 Docker container:
But I guess I completely misunderstood the problem here. Nevermind, sorry for the noise. |
@bgruening I wasn't able to reproduce the behavior you observed. Using Ubuntu 18.04 and installing pandas in an environment (via
No need to apologize! I think it is important to discuss and understand this issue with user-installed packages. It is so often over-looked, but it can cause conda users a lot of pain (e.g. this current issue). |
Creating the conda env:
Testing:
Error generated:
The text was updated successfully, but these errors were encountered: