Simpler way to set the R class of objects

Issue #341 resolved
Laurent Gautier created an issue

Currently setting the R class of objects requires R vectors:

from rpy2.robjects import r
l = r("list(x=1)")

# fails
# l.rclass = "abc"

from rpy2.robjects.vectors import StrVector
l.rclass = StrVector(("abc", ))

Comments (1)

  1. Log in to comment