How to install R-packages not in the conda repositories?

僤鯓⒐⒋嵵緔 提交于 2019-11-28 10:17:09

Detailed post on managing packages that are and are not in Anaconda R: http://ihrke.github.io/conda.html

Essentially is using commands:

conda skeleton cran <package_name>
conda build <package_name>

If the package has dependencies that are also not in Anaconda:

conda skeleton cran <dependency1>
conda skeleton cran <dependency2>
conda build <package_name>

Essentially I would agree with this post in saying that I don't understand how install.packages() works with Anaconda. What I seem to see is that Anaconda creates a R environment where all the packages installed from install.packages() are kept.

Whenever I am working in Jupyter with R, I use this environment and am able to access all the packages that I have installed with install.packages()

In the end, I got around the rl_event_hookproblems by following the approach recommended here and symlinking anaconda's libreadline to the system one:

mv ~/anaconda3/lib/libreadline.s.6.2 ~/anaconda3/lib/libreadline.s.6.2.bak
ln -s /usr/lib/libreadline.so.6.3 ~/anaconda3/lib/libreadline.s.6.2

I am still having troubles installing some dependency heavy R-packages due to failure to load shared objects when using install.packages() from withing R. However, simpler packages work fine and I can get most of the dependency heavy packages from anacondas R-repositories.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!