Error when importing rpy2.robjects : "R_HOME must be set in the environment or Registry"

  anaconda, environment-variables, python, registry, rpy2

I would like to use the R function r_smooth_spline() in Python. In oder to do that, I need to import rpy2.robjects. But I obtain the error "R_HOME must be set in the environment or Registry"..

I spent hours looking for a solution but didn’t find one..

Thank you

ps: I use anaconda on windows

Source: Python Questions

LEAVE A COMMENT