conda里的r语言,使用“ conda”从github安装R软件包。

any one can suggest how to use conda in Linux to install R package from github?

Thanks!

解决方案

According to this: https://github.com/conda/conda/issues/6674

You can create your own conda skeleton of a github derived R-package much as you would for a CRAN package.

Try doing

conda skeleton cran

conda build --R=

Then upload the built conda package to your own anaconda repository.

This will fail if any of the dependencies of the package are absent from the anaconda repos that you have access to. So you might have to conda-build a few other packages along the way.

Alternatively, you could install it directly with devtools::install_github(github_url, dependencies = FALSE). If you do go down this route, please ensure that any conda-available dependencies for the github package are already installed.

If you don't use dependencies = FALSE R will install.packages a bunch of updates. (As far as I can tell) When you install.packages a pre-installed package some_package in a conda env (eg, to update it) and then check conda list on your current env, it will show the version that was installed by conda, rather than the updated version.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值