I’m trying to build an environment with R 4.0.3 and tidyverse via conda-forge.
Here is my repository: GitHub - ikfj/ds-polimetrics at r-4.0.3
My environment.yml looks like:
channels: - conda-forge dependencies: - r-base=4.0.3 - r-tidyverse
Using mybinder.org I succeeded to build my environment.
Within RStudio, however, it fails loading tidyverse:
> library(tidyverse) Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/srv/conda/envs/notebook/lib/R/library/Rcpp/libs/Rcpp.so': /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /srv/conda/envs/notebook/lib/R/library/Rcpp/libs/Rcpp.so)
whereas within Jupyter Notebook it succeeds:
In : library(tidyverse) <output snipped>
So I’m confused; it seems like RStudio and Jupyter Notebook refer to different library path. Why?
How can I set RStudio to refer to
/srv/conda/envs/notebook/lib/libstdc++.so.6 instead of
Any solution/suggestion/comment would be appreciated. Thank you!