Error: package or namespace load failed for ‘org.Hs.eg.db’:
2
0
Entering edit mode
@2ab2c515
Last seen 24 days ago
China

Enter the body of text here

Code should be placed in three backticks as shown below

BiocManager::install("org.Hs.eg.db")
BiocManager::install("clusterProfiler")

library(org.Hs.eg.db) 
# include your problematic code here with any corresponding output 
# please also include the results of running the following in an R session 

sessionInfo( )

Error: package or namespace load failed for ‘org.Hs.eg.db’:
 loadNamespace()里算'org.Hs.eg.db'时.onLoad失败了,详细内容:
  调用: l$contains
  错误: $ operator is invalid for atomic vectors
$operator atomicvectors • 226 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 10 hours ago
United States

It’s Rstudio. https://github.com/rstudio/rstudio/issues/9219

You can try the fix proposed by Kevin Ushey in that bug report, or run R from the command line, or if you require an IDE, you could switch to emacs/ESS. IMO the latter is a far superior option, so you might take a look. Vincent Goulet has an installer that makes it as easy to install as RStudio.

0
Entering edit mode
ramashan • 0
@d2d5149a
Last seen 21 days ago
United States

you can try following. It works for me.

options(connectionObserver = NULL)

library(org.Hs.eg.db)

ADD COMMENT
0
Entering edit mode

That was fine for me too!

ADD REPLY

Login before adding your answer.

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