Getting Segmentation Fault Core Dumped Error While Importing Robjects From Rpy2
Installed R and rpy2 manually Installation is successful but getting the above mentioned error. Please help me out? Outputs of some useful commands: >>> import rpy2 >&g
Solution 1:
If you install rpy2 via conda, and also have a system installation of R on the same machine (e.g with RStudio), the system's R installation will be used. Since this R version doesn't match the one that rpy2 needs, segmentation faults occur.
1) remove any existing system installations of R (see here). Verify that you don't have any installations of R:
$>which R
R not found
2) define R_HOME
env variable, either in your .rc file:
export R_HOME=/Users/<your user>/anaconda3/envs/<env name>/lib/R
or dynamically in the python project:
import osos.environ['R_HOME'] = '/Users/<your user>/anaconda3/envs/<env name>/lib/R'
Post a Comment for "Getting Segmentation Fault Core Dumped Error While Importing Robjects From Rpy2"