R 报错

作者: 东风008 | 来源:发表于2021-01-27 20:55 被阅读0次

问题1:

Installation path not writeable, unable to update packages: boot, class, KernSmooth, Matrix, nlme, nnet, spatial
解决方案:

sudo R
update.packages()

问题2:
依赖包安装出错
解决方案:仔细查看报错信息,解决问题
例如:

Configuration failed to find libgit2 library. Try installing:
 * brew: libgit2 (MacOS)
 * deb: libgit2-dev (Debian, Ubuntu, etc)
 * rpm: libgit2-devel (Fedora, CentOS, RHEL)

打开终端,安装libgit2-dev(我的电脑是Ubuntu系统)

sudo aptitude install libgit2-dev

问题3:
安装ggthemr报错

> install.packages("ggthemr")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘ggthemr’ is not available (for R version 3.6.3)

> source("https://bioconductor.org/biocLite.R")
Error: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see https://bioconductor.org/install

> if (!requireNamespace("BiocManager", quietly = TRUE))
+   install.packages("BiocManager")
> BiocManager::install("ggthemr")
Bioconductor version 3.10 (BiocManager 1.30.10), R 3.6.3 (2020-02-29)
Installing package(s) 'ggthemr'
Installation path not writeable, unable to update packages: boot, class, KernSmooth, Matrix, nlme, nnet, spatial
Warning message:
package ‘ggthemr’ is not available (for R version 3.6.3) 

解决方案:仔细查看报错信息,解决问题,,采用devtools安装

install.packages("devtools")
library(devtools)
devtools::install_github("ggthemr")
# Error in parse_repo_spec(repo) :  Invalid git repo specification: 'ggthemr'
devtools::install_github("Mikata-Project/ggthemr")     #打开GitHub,找到地址,https://github.com/Mikata-Project/ggthemr

OK!

相关文章

  • R包安装报错-url filed

    问题 安装R包scPred,报错 报错信息 环境 R版本R version 3.4.4 解决方案 直接下载源码包,...

  • r报错

    使用dplyr包select函数时出现 select函数只能修改data.frame ,所以需要把metrix变为...

  • R 报错

    问题1: Installation path not writeable, unable to update pa...

  • 2020-11-18

    r安装bioconductor基因注释包报错

  • python open 文件

    open(file,'r') 模式可做操作若文件不存在是否覆盖r只能读报错-r+可读可写报错是w只能写创建是w+可...

  • _xmlReadMemory", referenced

    报错信息 _xmlReadMemory", referenced from:_htmlReadMemory", r...

  • 【R报错】解决Linux下安装clusterProfiler:o

    报错 R version 4.0.3 $RBiocManager::install("clusterProfil...

  • R语言学习记录

    R、Rstudio安装 包的安装 r语言实战相关代码记录 报错系列

  • 安装R包`GenomicRanges`时报错

    安装R包GenomicRanges时报错: 产生这样的报错是因为你在上次安装这个包时发生了意外中断。解决办法——r...

  • R source报错

    按下win+R,输入CMD,运行 C:\Program Files\R\R-3.4.2\bin\x64\Rgui....

网友评论

      本文标题:R 报错

      本文链接:https://www.haomeiwen.com/subject/cdmazktx.html