ropensci / git2r

R bindings to the libgit2 library
https://docs.ropensci.org/git2r
GNU General Public License v2.0
216 stars 58 forks source link

Conda, OpenSSL & git2r #414

Open tallulandrews opened 4 years ago

tallulandrews commented 4 years ago

I've installed OpenSSL and libgit2 with anaconda but I still get the following error when trying to install git2r with the R I installed using conda: Error: package or namespace load failed for ‘git2r’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/cluster/home/tandrews/Rpackages/00LOCK-git2r/00new/git2r/libs/git2r.so': /cluster/home/tandrews/Rpackages/00LOCK-git2r/00new/git2r/libs/git2r.so: undefined symbol: OPENSSL_init_ssl

Any suggestions? (Note I don't have admin priviledges, so everything must be installed locally hence why I'm using conda).

jdblischak commented 4 years ago

If you're using conda, I recommend installing the R packages via conda as well. In this case:

conda install -c conda-forge r-git2r

If you have any trouble with the conda binary for git2r, you can open an Issue for the repository r-git2r-feedstock.