rpy2: how to call function with parameter in python flask restful? rpy2: how to call function with parameter in python flask restful? flask flask

rpy2: how to call function with parameter in python flask restful?


Did you success?Try :

r.source("my_func.R")my_result=r('my_func')(param)

or

r.source("my_func.R")functionR=r('my_func')my_result=functionR(param)