.libPaths()
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(c("clusterProfiler", "GO.db", "org.Hs.eg.db"), dependencies = TRUE, force = TRUE)
sessionInfo()
output
The downloaded source packages are in
‘C:\Users\naila\AppData\Local\Temp\Rtmpe8MOLq\downloaded_packages’
Installation paths not writeable, unable to
update packages
path: C:/Program Files (x86)/R/R-4.4.2/library
packages:
cluster
Warning messages:
1: In install.packages(...) :
installation of package ‘GO.db’ had non-zero exit status
2: In install.packages(...) :
installation of package ‘org.Hs.eg.db’ had non-zero exit status
Please can someone help me. i have tried everything but it won't install I have also changed the environmental variable
It would be impossible to help you if you already tried everything and all those attempts failed. For example, did you try to run this installation as an administrator?
Installation paths not writeable, unable to update packages
path: C:/Program Files (x86)/R/R-4.4.2/library
packages: cluster
This message indicates that either you don't have administrator privileges (i.e., you are not allowed to write files in system directories), or perhaps you have those privileges but didn't start the installation as an administrator.
My memory from having R installed in windows (and it has been a long time) is that the library is generally kept in "My Documents". What is happening here is that the update of the cluster package is failing. It maybe that new packages install to "My Documents", which you do have permission to write to, but someone else (a sys admin doing a default install?) has installed the cluster package to "Program Files".
Please can someone help me. i have tried everything but it won't install I have also changed the environmental variable