Have you tried these operations in R itself? I'm not sure that what
you're trying to do works in R, let alone R through python.
The error you're seeing is exactly correct - the R open function does
not know what to do with the character ("a") that you are passing to
it.
On Thu, Jan 27, 2011 at 2
Sorry. I have to modify my question. My codes were exactly as follows.
>>> import rpy2.robjects as robjects
>>> load=robjects.r['load']
>>> filename=robjects.StrVector(['test.RData'])
>>> x=load(filename)
>>> print(x)
"a" "b" "c"
>>> open(x[0])
Afterward, I got the following error.
RRunti