I'm trying to work with the reticulate library in R. I used the "functions.py" example to test it out:
# functions.py file
def add(x, y):
return x + y
In R studio (Version 3.5.2), this is what I have:
library(reticulate)
source_python('functions.py')
However, this returns an error:
Error in py_set_attr_impl(x, name, value) :
Evaluation error: ModuleNotFoundError: No module named 'rpytools'.
So I'm stuck here. If it helps, I'll also share that my Python is 64-bit and version 3.6.5. Anyone know how to go about this?
Thanks