I am trying to incorporate some R code in the python environment. I imported rpy2 package successfully. However, I get the error when I try to import rpy2.objects
from rpy2.robjects import pandas2ri
I get the below error
Error in glue(.Internal(R.home()), "library", "base", "R", "base", sep =
.Platform$file.sep) :
4 arguments passed to .Internal(paste) which requires 3
Error: could not find function "attach"
Error: object '.ArgsEnv' not found
Fatal error: unable to initialize the JIT
Restarting kernel...
I found some of the related questions in SE here here and here. But, none of them seem to work.