查看系统上有哪些Python版本
py_discover_config(required_module = NULL, use_environment = NULL)
required_module :一个可选模块名,必须可用,才能使用Python版本。
use_environment:在搜索中首选的可选虚拟/转接环境名称
R上安装python包
library(reticulate)
py_install("scipy")
检查R上安装python包是否可用
py_module_available("pandas")
指定R上使用的python的环境
https://github.com/rstudio/reticulate/issues
library(reticulate)
reticulate::use_virtualenv("~/pythonenvs/userenv")