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,438
  • 68
  • 55
  • 126
Yash
  • 481
  • 2
  • 5
  • 12

0 Answers0