Skip to content Skip to sidebar Skip to footer

Force Rpy2 In Conda Environment To Use The R Outside Of The Conda Environment

I started using conda environments. I know that I can open and use R jupiter notebook, but my preferred workflow is to use R within a python notebook, when necessary, with rpy2 and

Solution 1:

There are several ways to tell R about package directories (http://stat.ethz.ch/R-manual/R-devel/library/base/html/libPaths.html).

Try setting the environment variable R_LIBS or R_LIBS_USER (before %load_ext rpy2.ipython in the notebook).

Post a Comment for "Force Rpy2 In Conda Environment To Use The R Outside Of The Conda Environment"