# NOT RUN {
py.assign("a", 1:4)
py.get("a")
# [1] 1 2 3 4
py.assign("b", list(one = 1, foo = "bar"))
str(py.get("b"))
# List of 2
# $ foo: chr "bar"
# $ one: int 1
py.exec("import math")
py.get("math.pi")
# [1] 3.141593
# }
# NOT RUN {
py.rm("notset")
py.get("notset")
# Error in py.get("notset") (from py.get.R#60) : Traceback (most recent call last):
# File "<string>", line 2, in <module>
# NameError: name 'notset' is not defined
# }
Run the code above in your browser using DataLab