Could not find function "getGEO" though installed GEOquery with latest version of Rstudio

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

BiocManager::install("GEOquery")

library(GEOquery)

gse <- getGEO("GSE90496", GSEMatrix=TRUE, getGPL=FALSE)

This returns the error message "Error in getGEO("GSE90496", GSEMatrix = TRUE, getGPL = FALSE) :
could not find function "getGEO"

I can't figure out why R won't let me use this function, I'm using the latest version of Rstudio so I can't update and try again.. if someone can please help? Thank you so much.

Do you get any error message when you install or load the package?

Hi Andres, the error message says,

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

There's your problem !

Try to update rlang package as requested by the error message.

install.packages("rlang")

Do you get any error message while doing so?

I needed to update 2 packages in GEOquery, "vctrs" and "rlang" so I remove.packages() then install.packages() and loaded the GEOquery library again, now it worked.
Thank you so much!!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.