载入了名字空间‘vctrs’ 0.2.0,但需要的是>= 0.2.1

library("ReactomePA")

问题

Error: package or namespace load failed for ‘ReactomePA’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 载入了名字空间‘vctrs’ 0.2.0,但需要的是>= 0.2.1
In addition: Warning message:
replacing previous import ‘S4Vectors::splitAsList’ by ‘IRanges::splitAsList’ when loading ‘AnnotationDbi’ 

解决办法

packageurl = 'https://cran.r-project.org/src/contrib/vctrs_0.2.1.tar.gz'
install.packages(packageurl, repos = NULL, type = 'source')

Installing package into ‘C:/Users/wlx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.r-project.org/src/contrib/vctrs_0.2.1.tar.gz'
Content type 'application/x-gzip' length 673529 bytes (657 KB)
downloaded 657 KB

  • installing source package 'vctrs' ...
    ** 成功将'vctrs'程序包解包并MD5和检查
ERROR: cannot remove earlier installation, is it in use?
  • removing 'C:/Users/wlx/Documents/R/win-library/3.6/vctrs'
  • restoring previous 'C:/Users/wlx/Documents/R/win-library/3.6/vctrs'
    Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
    拷贝C:\Users\wlx\Documents\R\win-library\3.6\00LOCK-vctrs\vctrs\libs\x64\vctrs.dll到C:\Users\wlx\Documents\R\win-library\3.6\vctrs\libs\x64\vctrs.dll时出了问题:Permission denied
    Warning in install.packages :
    installation of package ‘C:/WINDOWS/Temp/RtmpyeWHSh/downloaded_packages/vctrs_0.2.1.tar.gz’ had non-zero exit status
library("ReactomePA")
Error: package or namespace load failed for ‘ReactomePA’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 载入了名字空间‘vctrs’ 0.2.0,但需要的是>= 0.2.1

vctrs旧版本卸载不了

重启R之后卸掉了

remove.packages("vctrs", lib="C:/Program Files/R/R-3.6.1/library")

remove.packages(vctrs)
Error in remove.packages : object 'vctrs' not found
remove.packages("vctrs", lib="C:/Program Files/R/R-3.6.1/library")
remove.packages("vctrs", lib="~/R/win-library/3.6")
remove.packages("vctrs", lib="C:/Program Files/R/R-3.6.1/library")
library("vctrs", lib.loc="C:/Program Files/R/R-3.6.1/library")
remove.packages("vctrs", lib="C:/Program Files/R/R-3.6.1/library")
remove.packages("vctrs", lib="C:/Program Files/R/R-3.6.1/library")
update.packages(vctrs)
Error in update.packages(vctrs) : object 'vctrs' not found
update.packages("vctrs")
library("vctrs", lib.loc="C:/Program Files/R/R-3.6.1/library")
library(vctrs)

新问题

remove.packages("vctrs", lib="C:/Program Files/R/R-3.6.1/library")

packageurl = 'https://cran.r-project.org/src/contrib/vctrs_0.2.1.tar.gz'
install.packages(packageurl, repos = NULL, type = 'source')
Installing package into ‘C:/Users/wlx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.r-project.org/src/contrib/vctrs_0.2.1.tar.gz'
Content type 'application/x-gzip' length 673529 bytes (657 KB)
downloaded 657 KB

  • installing source package 'vctrs' ...
    ** 成功将'vctrs'程序包解包并MD5和检查
    ** using staged installation
    ** libs
Warning in system(cmd) : 'make' not found

ERROR: compilation failed for package 'vctrs'


* removing 'C:/Users/wlx/Documents/R/win-library/3.6/vctrs'
Warning in install.packages :
  installation of package ‘C:/WINDOWS/Temp/RtmpExBNbV/downloaded_packages/vctrs_0.2.1.tar.gz’ had non-zero exit status
> 

 devtools::install_github("r-lib/vctrs", INSTALL_opts = "--no-multiarch")

WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools custom from http://cran.r-project.org/bin/windows/Rtools/.
Downloading GitHub repo r-lib/vctrs@master
trying URL 'https://mirror.lzu.edu.cn/CRAN/bin/windows/Rtools/Rtools35.exe'
Content type 'application/octet-stream' length 108622512 bytes (103.6 MB)
downloaded 103.6 MB

Error: Failed to install 'vctrs' from GitHub:
Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.
Error: call is deprecated as of rlang 0.3.0

安装RTOOLS之后

 devtools::install_github("r-lib/vctrs", INSTALL_opts = "--no-multiarch")
Downloading GitHub repo r-lib/vctrs@master
These packages have more recent versions available.
Which would you like to update?

1: All                             
2: CRAN packages only              
3: None                            
4: digest (0.6.21 -> 0.6.23) [CRAN]

Enter one or more numbers, or an empty line to skip updates:
3
√  checking for file 'C:\Windows\Temp\RtmpExBNbV\remotes301471b44490\r-lib-vctrs-038b6af/DESCRIPTION' ...
-  preparing 'vctrs': (1.1s)
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  installing the package to process help pages
-  cleaning src (24.7s)
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'vctrs_0.2.99.9002.tar.gz'
   
Installing package into ‘C:/Users/wlx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'vctrs' ...
** using staged installation
** libs
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c altrep-rle.c -o altrep-rle.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c arg-counter.c -o arg-counter.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c arg.c -o arg.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c bind.c -o bind.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c c.c -o c.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c cast.c -o cast.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c compare.c -o compare.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c conditions.c -o conditions.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c dictionary.c -o dictionary.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c equal.c -o equal.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c fields.c -o fields.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c group.c -o group.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c growable.c -o growable.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c hash.c -o hash.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c init.c -o init.o
In file included from init.c:6:0:
altrep-rle.h:23:25: warning: 'altrep_rle_class' defined but not used [-Wunused-variable]
 static R_altrep_class_t altrep_rle_class;
                         ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c names.c -o names.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c proxy-restore.c -o proxy-restore.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c proxy.c -o proxy.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c size-common.c -o size-common.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c size.c -o size.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slice-array.c -o slice-array.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slice-assign.c -o slice-assign.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slice-chop.c -o slice-chop.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c slice.c -o slice.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c split.c -o split.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c subscript-loc.c -o subscript-loc.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c translate.c -o translate.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c type-data-frame.c -o type-data-frame.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c type-info.c -o type-info.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c type-list-of.c -o type-list-of.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c type.c -o type.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c type2-dispatch.c -o type2-dispatch.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c type2.c -o type2.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c unspecified.c -o unspecified.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c utils-dispatch.c -o utils-dispatch.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c utils.c -o utils.o
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o vctrs.dll tmp.def altrep-rle.o arg-counter.o arg.o bind.o c.o cast.o compare.o conditions.o dictionary.o equal.o fields.o group.o growable.o hash.o init.o names.o proxy-restore.o proxy.o size-common.o size.o slice-array.o slice-assign.o slice-chop.o slice.o split.o subscript-loc.o translate.o type-data-frame.o type-info.o type-list-of.o type.o type2-dispatch.o type2.o unspecified.o utils-dispatch.o utils.o -LC:/PROGRA~1/R/R-36~1.1/bin/x64 -lR
installing to C:/Users/wlx/Documents/R/win-library/3.6/00LOCK-vctrs/00new/vctrs/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'vctrs'
    finding HTML links ... 好了
    fields                                  html  
    int64                                   html  
    list_of                                 html  
    name_spec                               html  
    new_data_frame                          html  
    new_date                                html  
    new_factor                              html  
    new_list_of                             html  
    new_partial                             html  
    new_rcrd                                html  
    new_vctr                                html  
    obj_print                               html  
    op-empty-default                        html  
    partial_factor                          html  
    partial_frame                           html  
    s3_register                             html  
    stop_subscript_oob_location             html  
    unspecified                             html  
    vctrs-conditions                        html  
    vctrs-package                           html  
    vec_arith                               html  
    vec_as_index                            html  
    vec_as_location                         html  
    vec_as_names                            html  
    vec_as_names_legacy                     html  
    vec_as_subscript                        html  
    vec_assert                              html  
    vec_bind                                html  
    vec_c                                   html  
    vec_cast                                html  
    vec_chop                                html  
    vec_compare                             html  
    vec_count                               html  
    vec_data                                html  
    vec_default_cast                        html  
    vec_duplicate                           html  
    vec_empty                               html  
    vec_equal                               html  
    vec_group                               html  
    vec_init                                html  
    vec_list_cast                           html  
    vec_match                               html  
    vec_math                                html  
    vec_order                               html  
    vec_proxy_compare                       html  
    vec_proxy_equal                         html  
    vec_ptype                               html  
    vec_ptype2                              html  
    vec_ptype_full                          html  
    vec_recycle                             html  
    vec_repeat                              html  
    vec_seq_along                           html  
    vec_size                                html  
    vec_slice                               html  
    vec_split                               html  
    vec_type                                html  
    vec_unique                              html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (vctrs)

重启R之后查询 安装成功


image.png

image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 199,711评论 5 468
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 83,932评论 2 376
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 146,770评论 0 330
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,799评论 1 271
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,697评论 5 359
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,069评论 1 276
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,535评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,200评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,353评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,290评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,331评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,020评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,610评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,694评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,927评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,330评论 2 346
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,904评论 2 341

推荐阅读更多精彩内容