在linux中关于R包devtools的安装

  1. #先选择镜像,然后安装

  2. options("repos"=c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))

  3. install.packages("devtools")

报错

ERROR: configuration failed for package ‘openssl’
* removing ‘/home/huiweiwang/R/x86_64-pc-linux-gnu-library/4.2/openssl’
Warning in install.packages :
  installation of package ‘openssl’ had non-zero exit status
* installing *source* package ‘httpuv’ ...
** package ‘httpuv’ successfully unpacked and MD5 sums checked
** using staged installation
** Using bundled copy of libuv
** PKG_CFLAGS=-Ilibuv/include
** PKG_LIBS=./libuv/.libs/libuv.a

方法1:最后用conda直接安装,退出R,然后输入代码
conda install r-devtools
对于其他有binary版本的R包,遇到had non-zero exit status报错,
 当我install.packages("gXXXX")的时候,出现了烦人的报错——had non-zero exit statusinstall.packages("xx",type="binary")应该也都可以轻松解决。

You have a lot of outdated packages that are causing installation issues and you are using a quite old R version, I recommend you to update R to the latest version

update.packages(repos='http://cran.rstudio.com/', ask=FALSE, checkBuilt=TRUE)

Then you can try to install devtools again

最近更新

  1. TCP协议是安全的吗?

    2024-03-14 06:40:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-14 06:40:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-14 06:40:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-14 06:40:02       20 阅读

热门阅读

  1. 服务器中间件的种类和日常使用

    2024-03-14 06:40:02       20 阅读
  2. Linux-轻量级数据库sqlite函数接口-016

    2024-03-14 06:40:02       21 阅读
  3. 网络安全等级保护2.0自查表 | 管理部分

    2024-03-14 06:40:02       17 阅读
  4. Unity WebGL ios 跳转URL

    2024-03-14 06:40:02       20 阅读
  5. 深入理解ngx_http_upstream_vnswrr_module负载均衡模块

    2024-03-14 06:40:02       19 阅读
  6. 亚马逊云科技 Lambda 运行selenium

    2024-03-14 06:40:02       22 阅读
  7. 突破编程_C++_设计模式(状态模式)

    2024-03-14 06:40:02       17 阅读
  8. 华为认证云计算专家(HCIE-Cloud Computing)--问答题

    2024-03-14 06:40:02       19 阅读
  9. MFC中内存共享调用方法及使用示例

    2024-03-14 06:40:02       20 阅读
  10. 使用docker搭建webtop

    2024-03-14 06:40:02       20 阅读