ubuntu下使用github安装R Packages[已解决]
来源:互联网 发布:xy苹果手机助手mac版 编辑:程序博客网 时间:2024/05/18 12:33
安装packages失败:
提示错误为:
package ‘****’ is not available (for R version 3.1.2)
Solved:使用github的安装方式:
- 先安装好devtools:
* Installing devtools Package *
While many R packages are hosted on CRAN and can be installed using the built-in install.packages() function, there are many more packages that are hosted on GitHub but are not on CRAN. To install R packages from GitHub, we need to use the devtools R package, so let’s install it.
The devtools R package requires three system packages to be installed on the Droplet, namely libcurl4-gnutls-dev, libxml2-dev, and libssl-devc. Install these three packages:
$ sudo apt-get -y install libcurl4-gnutls-dev libxml2-dev libssl-dev
Now the devtools R package can be installed. Remember that we want to install it using the same method as described above, rather than install it within an R session, because devtools should be available to all users.
R > install.packages('devtools', repos='http://cran.rstudio.com/')
- 碰见问题:
> devtools::install_github(c('IRkernel/IRdisplay', 'IRkernel/IRkernel'))Downloading GitHub repo IRkernel/IRdisplay@masterfrom URL https://api.github.com/repos/IRkernel/IRdisplay/zipball/masterInstalling IRdisplayError in if (capabilities("libcurl")) { : argument is of length zero
解决方式:
$ sudo apt-get install libcurl4-openssl-dev libxml2-dev libxslt-dev libssl-dev -y$ sudo apt-get install r-base r-base-dev -y$ R...> options(repos='http://cran.rstudio.com/')> install.packages("devtools")> install.packages(c('repr', 'pbdZMQ', 'devtools'))> options(download.file.method = "wget")> install.packages('RCurl')> devtools::install_github(c('IRkernel/IRdisplay', 'IRkernel/IRkernel'))> IRkernel::installspec()
3.安装packages: 比如installr
if (!require('devtools')) install.packages('devtools'); # make sure you have Rtools installed first! if not, then run:#install.packages('installr')#install.Rtools()devtools::install_github('talgalili/installr')
Ref:
- https://github.com/IRkernel/IRkernel/issues/378
- https://github.com/talgalili/installr
- https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on-ubuntu-14-04 *
- https://www.r-statistics.com/tag/installr/
0 0
- ubuntu下使用github安装R Packages[已解决]
- Ubuntu下安装beta版R报dpkg: dependency problems prevent configuration of r-recommended错误[已解决]
- Ubuntu环境下GitHub安装与使用
- ubuntu下github 安装和使用入门
- 解决 Ubuntu下Rpm安装报错Please use alien to install packages
- 解决 Ubuntu下Rpm安装运行报错Please use alien to install packages
- ubuntu下安装R
- Ubuntu 下安装 R
- ubuntu下安装R
- ubuntu下安装R
- ubuntu 下VIM安装YourCompleteMe(中间问题已解决)
- 安装R packages报错
- R-从R-Forge安装packages
- ubuntu环境下安装R
- R语言在Ubuntu下的安装及使用
- Github 在 Ubuntu Server 10.10 下的安装和使用
- 在ubuntu下怎么安装和使用Github
- Ubuntu 12.04 下 GitHub安装和使用快速入门
- Session中的对象注意要序列化
- datagrid判断数据是否可以合并并合并单元格
- c++发送消息格式为JSON的http请求
- C#学习笔记01——SqlBulkCopy
- PAT(A) - 1018. Public Bike Management (30)
- ubuntu下使用github安装R Packages[已解决]
- ws_download 和 gui_download参数codepage解析
- 神经网络(c++)【转】
- 二分查找实用模板
- Calendar 日历类
- navgationBar按钮颜色
- [知识总结]HTML5布局之flex布局总结
- SQL注入及Pangolin(穿山甲)学习(第一次接触并了解,内容缘自百度,未实践)
- MySql创建函数