Entering edit mode
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
Did you try following the advice given
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 dolibrary('clusterProfiler')
.Do you get errors if you just run: