1

Let say I have script calc.R with a function add.

add <- function(x, y) {
  return(x+y)
}

Is it possible to import 'add' in a python script test.py ?

(Had calc been a py script I could simply: from calc import add. Is there a soltuion for calc.R ?)

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Yash
  • 510
  • 2
  • 6
  • 14

0 Answers0