Problem with install installation("org.Hs.eg.db") package
1
0
Entering edit mode
Eslam • 0
@eslam-24990
Last seen 3.8 years ago

I'm trying to install wanted R packages by using the following code

if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")

BiocManager::install("org.Hs.eg.db") but the installation failed

error message

org.Mm.eg.db org.Hs.eg.db • 4.2k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 4 days ago
United States

Usually something like

unlink("C:/Users/Eslam/Documents/R/win-library/4.0/00LOCK-org.Hs.eg.db", recursive = TRUE, force = TRUE)
install("org.Hs.eg.db")

Should do the trick. Or just close R, go to that dir and manually delete the 00LOCK dir, restart, and install.

ADD COMMENT
0
Entering edit mode

I used your code and went to the dir but did not find 00LOCK file and still facing the same problem

and try to manually construct new file in this dir with the name of (org.Hs.eg.db) or (00LOCK-org.Hs.eg.db) and restart and install again but still facing same problem also the constructed file in this dir was removed even save it opened during the installation.enter image description here
enter image description here

ADD REPLY
0
Entering edit mode

Linking to pictures of your console output is suboptimal. Instead, copy/paste the output as text and follow the example presented here to format it correctly.

I'm, assuming you can install other packages to that library directory? How about org.Mm.eg.db?

As part of the install process, R creates a temporary directory called 00LOCK-org.Hs.eg.db to do a temporary install of the package. You shouldn't ever have a directory with that name, except for the time when the package is being actively installed. The fact that you have an issue with permissions for just one file makes me think that you actually do have that directory, and there is already an org.Hs.eg.sqlite file there. Which is why you need to delete it. And you shouldn't be creating the directory for R, it will make the directory itself.

ADD REPLY
0
Entering edit mode

Thank you; I will take it into consideration the next time, the same problem appeared with org.Mm.eg.db but, I followed the steps in youtube video () as follow: 1- run R.stedio as administrator. 2- change the directory of the installation rather than the default one. 3- manually install the package with the specific installation problem. I did that and already the two packages have been installed.

thank you very much

ADD REPLY

Login before adding your answer.

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