1

I'm getting this error while trying to install rpy2 package:

RuntimeError: R_HOME not defined, and no R command in the PATH.

screenshot

How can I fix this?

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • does this question solve your problem? https://stackoverflow.com/questions/17573988/r-home-error-with-rpy2 – Zichzheng Jun 29 '21 at 17:32
  • 1
    Try not to use images of code on your questions. Better to paste the stacktrace here. See https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-errors-when-asking-a-question – Maicon Mauricio Jun 29 '21 at 18:46
  • You could use Docker or WSL2 instead, but you will still need to refine R_HOME and put R executable on your PATH – OneCricketeer Jun 29 '21 at 19:49

1 Answers1

0

I'm sorry, but on the rpy2 package page, they said :

Running rpy2 on Windows is currently not supported although relative success was recently reported with the lastest in the 3.3.x series.

LittleCoder
  • 391
  • 1
  • 13