cannot install GO.db in windows
1
0
Entering edit mode
6 months ago
Naila • 0

code

.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
GO.db • 710 views
ADD COMMENT
0
Entering edit mode

Please can someone help me. i have tried everything but it won't install I have also changed the environmental variable

ADD REPLY
1
Entering edit mode
6 months ago
Mensur Dlakic ★ 30k

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.

ADD COMMENT
0
Entering edit mode

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".

ADD REPLY

Login before adding your answer.

Traffic: 6234 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