rpy2
rpy2 copied to clipboard
Unable to determine R home: [WinError 2]
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.
You may not have set R_ HOME environment variable
Or you can see #796