rpy2 icon indicating copy to clipboard operation
rpy2 copied to clipboard

Unable to determine R home: [WinError 2]

Open GoForit-007 opened this issue 2 years ago • 2 comments

Describe the issue or bug

A clear and concise description of what the issue or bug is.

Please note that this to report demonstrated or suspected issues or bugs with rpy2. Check the project's documentation or Stackoverflow to check whether the answer can be found there.

To Reproduce

import rpy2.robjects as robjects
from rpy2.robjects import pandas2ri
pandas2ri.activate()

readRDS=robjects.r['readRDS']
df=readRDS('Rdata.rds')

Expected behavior A clear and concise description of what you expected to happen.

Error Unable to determine R home: [winerror 2] the system cannot find the specified file.

Additional context Add any other context about the problem here.

GoForit-007 avatar Aug 12 '22 09:08 GoForit-007

You may not have set R_ HOME environment variable

zhibisora avatar Aug 25 '22 07:08 zhibisora

Or you can see #796

zhibisora avatar Aug 25 '22 07:08 zhibisora