user418560
user418560

Reputation: 51

R reticulate install python libraries from Github

Does anyone have any ideas on how to directly install the python libraries available on Github from reticulate? The py_install function only supports libraries available on conda or PyPI.

For example, when building an R package based on a python library only available on Github, do I inevitably have to copy the source code of the library into my package?

Upvotes: 3

Views: 1381

Answers (1)

user418560
user418560

Reputation: 51

Finally, in the function where I set up the python environment for the package, I called the R base system function where I pass the install command.

For example, for the pylearn-parsimony library which is not available on Conda, I used this line which worked:

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

Upvotes: 2

Related Questions