R reticulate 从 Github 安装 python 库

R reticulate install python libraries from Github

有没有人知道如何从 reticulate 直接安装 Github 上可用的 python 库? py_install 函数仅支持 condaPyPI.

上可用的库

例如,当基于 python 库构建 R 包时,仅在 Github 上可用,我是否不可避免地必须复制源代码图书馆到我的包裹?

最后,在我为包设置 python 环境的函数中,我调用了 R base system 函数,我将安装命令。

例如,对于 Conda 上不可用的 pylearn-parsimony 库,我使用了行之有效的这一行:

system("pip install git+git://github.com/neurospin/pylearn-parsimony.git@master")