Have a look at the **reticulate** package to see if it serves the needs of interfacing with R https://rstudio.github.io/reticulate/