3

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?

user418560
  • 41
  • 6

1 Answers1

1

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")
user418560
  • 41
  • 6
  • The git+git command seems not working anymore. I'm getting a "fatal: unable to connect to github.com" error. "pip install git+https://github.com/neurospin/pylearn-parsimony.git" might be better. – user418560 Jul 05 '22 at 09:03