Importing python module in R

前端 未结 1 703
傲寒
傲寒 2020-12-20 17:44

I am trying to import a python module in R using the reticulate package. The module can be found here. I cloned the repository and ran python setup.py ins

相关标签:
1条回答
  • 2020-12-20 18:07

    After reading this I finally figured out. I think before calling any other function from the reticulate package, it is imperative to specify the path to python to use. Hence the order I am following now is:

    library(reticulate)
    path_to_python <- "/anaconda/bin/python"
    use_python(path_to_python)
    
    0 讨论(0)
提交回复
热议问题