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之后查询 安装成功