1

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

Vic tor
  • 11
  • 1
  • 2
  • 1
    There is simmilar question on stackoverflow. Try this [answer](https://stackoverflow.com/a/40790597/11061257) – Александр Немиров Feb 25 '21 at 07:14
  • thank you! I forgot to say that I tried this answer but I can't find the path to R ? please could you tell me how can I find it ? – Vic tor Feb 25 '21 at 11:07
  • The issue would seem to be with the anaconda package as it would seem to allow an installation of rpy2 without R on the system (and without a warning about with). Look for information / documentation about adding R to the registry or `PATH` on Windows (the answer you are pointed to in a previous comment seems to be for UNIX-like systems. – lgautier Feb 28 '21 at 15:29
  • Does this answer your question? [R\_HOME Error with rpy2](https://stackoverflow.com/questions/17573988/r-home-error-with-rpy2) – LudvigH May 27 '21 at 14:27

0 Answers0