GEOquery loading error.
2
0
Entering edit mode
3.1 years ago

I started getting a strange error when trying to load GEOquery with library(GEOquery).

Error: package or namespace load failed for ‘GEOquery’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.4.9 is already loaded, but >= 0.4.10 is required

When I run

devtools::install_github('r-lib/rlang')

I get ...

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 0.4.9 is already loaded, but >= 0.4.10 is required

Has anyone dealt with this before? Restarting my R session has no effect.

r geo • 2.8k views
ADD COMMENT
1
Entering edit mode

Hello angus.j.g.campbell!

It appears that your post has been cross-posted to another site: https://bioinformatics.stackexchange.com/questions/15486/calling-geoquerry-error-while-loading-the-library

This is typically not recommended as it runs the risk of annoying people in both communities.

ADD REPLY
2
Entering edit mode
3.1 years ago
Elucidata ▴ 270

GEOquery works on the R version (4.0). To update the R version, use the updateR() command. Before running updateR(), install installr package if you don’t have this package installed already. After updating the R version, execute the following command to install GEOquery -

if (!requireNamespace("BiocManager", quietly = TRUE))

install.packages("BiocManager")

BiocManager::install("GEOquery")

ADD COMMENT
0
Entering edit mode
3.1 years ago
predeus ★ 1.9k

I would try un-installing GEOquery and re-installing it again (and updating packages as it's offered).

Alternatively, just do install.packages("rlang") - this should install the newest version. If it doesn't, I'd consider updating R itself.

ADD COMMENT
0
Entering edit mode

Thank you in the end I had to uninstall rlang, and geoquery and then reinstall them and it seems to have fixed the bugs

Angus

ADD REPLY

Login before adding your answer.

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