I installed and opened the BiocManager package using this code:
install.packages('BiocManager')
library(BiocManager)
BiocManager::install('WGCNA')
BiocManager::install('flashClust')
BiocManager::install("GO.db")
BiocManager::install("impute")
BiocManager::install("preprocessCore")
But then I get this error
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package =
"BiocManager")' for details.
Replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.21 (BiocManager 1.30.26), R 4.5.1 (2025-06-13 ucrt)
Installation paths not writeable, unable to update packages
path: C:/Program Files (x86)/R/R-4.5.1/library
packages:
boot, Matrix
So then i tried to update those two packages
> old.packages()
Package LibPath Installed Built ReposVer
boot "boot" "C:/Program Files (x86)/R/R-4.5.1/library" "1.3-31" "4.5.1" "1.3-32"
Matrix "Matrix" "C:/Program Files (x86)/R/R-4.5.1/library" "1.7-3" "4.5.1" "1.7-4"
Repository
boot "https://cran.rstudio.com/src/contrib"
Matrix "https://cran.rstudio.com/src/contrib"
> update.packages(ask = FALSE)
Warning: package 'boot' in library 'C:/Program Files (x86)/R/R-4.5.1/library' will not be updated
Warning: package 'Matrix' in library 'C:/Program Files (x86)/R/R-4.5.1/library' will not be updated
# include your problematic code here with any corresponding output
# please also include the results of running the following in an R session
Here is the session info.
sessionInfo()
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocManager_1.30.26
loaded via a namespace (and not attached):
[1] compiler_4.5.1 cli_3.6.5 tools_4.5.1
I am running this on a brand new windows laptop. When I update these packages from the packages tab it seems to go through but when I try to install the other packages they are still out of date.
I need to be able to use WGCNA for my phd work and it is frustrating I can't use it. Yesterday it was an issue with "broom" but that seems to have gone away and now the biggest problem is with "Go.db" which doesn't load at all and "boot" and "Matrix". I have deleted r from my laptop multiple times and completely wiped all files related to r. I have then redownloaded it and started from scratch over and over again. How can I fix this?