Error in install package
0
0
Entering edit mode
HAICAN • 0
@4457be8d
Last seen 2.3 years ago
United Kingdom
if (!requireNamespace("BiocManager", quietly = TRUE))
  install.packages("BiocManager")

BiocManager::install("clusterProfiler")

browseVignettes("clusterProfiler")


knitr::opts_chunk$set(tidy = FALSE,
                      warning = FALSE,
                      message = FALSE)

Error in unpackPkgZip(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib, libs_only,  : 
  ERROR: failed to lock directory ‘D:\Documents\R\win-library\4.0’ for modifying
Try removing ‘D:\Documents\R\win-library\4.0/00LOCK’
In addition: Warning message:
package(s) not installed when version(s) same as current; use `force = TRUE` to re-install:
  'clusterProfiler' 

sessioninfo results--
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936  LC_CTYPE=Chinese (Simplified)_China.936   
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C                              
[5] LC_TIME=Chinese (Simplified)_China.936    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] BiocManager_1.30.16 compiler_4.0.3      tools_4.0.3         knitr_1.30         
[5] xfun_0.24
clusterProfiler • 1.9k views
ADD COMMENT
0
Entering edit mode

Did you try following the advice given

Error in unpackPkgZip(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib, libs_only,  : 
  ERROR: failed to lock directory ‘D:\Documents\R\win-library\4.0’ for modifying
Try removing ‘D:\Documents\R\win-library\4.0/00LOCK’

Also since you have already installed clusterProfiler you do not need to do BiocManager::install("clusterProfiler"). That call only needs to be done once on a system and subsequently you can just do library('clusterProfiler').

Do you get errors if you just run:

library('clusterProfiler')
browseVignettes("clusterProfiler")
ADD REPLY

Login before adding your answer.

Traffic: 557 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6