-
Notifications
You must be signed in to change notification settings - Fork 48
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
Install R packages? #26
Comments
I am not doing anything R-specific in the setup. Does Colab ship their own R runtime too? I guess we need to do some patching in that case so it uses conda's R? |
Yes, Colab ships their own R runtime. But what I always use is the default runtime with the Rmagic. |
I see. We might need to install R from scratch using conda/mamba too, and hope it replaces everything already in Colab. I am planning a refactor where we stop depending on the shipped packages though, so everything is added by us and we don't have to cross our fingers for ABI compatibility. This would make the R case way simpler. That said, I don't have an ETA for that. Let's leave this open for now so we can target it in the future. If you want to debug this in the meantime, this is what I would do:
Also, take into account that a current limitation is that we can't add new environments. If you want to use an environment file, you should use |
Thanks for your tips, it is actually super easy to fix this issue by ensuring mamba also install and overwrite rpy2 in the base environment. I have updated the notebook linked above accordingly. |
Awesome! I'll add a note to the README. |
Is it possible to install R packages using condacolab, then load these packages inside %%R cells?
If I try it I get this error:
The text was updated successfully, but these errors were encountered: