Error: package or namespace load failed for ‘clusterProfiler’: object ‘get_fun_from_pkg’ is not exported by 'namespace:rvcheck'
1
0
Entering edit mode
3.2 years ago

Hi, the following problem happens when using clusterProfiler in R.

I don't know how to solve it.

Can someone please tell me how to do this?

Error: package or namespace load failed for ‘clusterProfiler’:  object ‘get_fun_from_pkg’ is not exported by 'namespace:rvcheck'
clusterProfiler namespace offtopic get_fun_from_pkg rvcheck • 7.4k views
ADD COMMENT
2
Entering edit mode

Hi, I am also searching for this solution, and came across the following post. Just posting to be helpful for someone else.

https://support.bioconductor.org/p/9139604/#9139615

Copied from this post: " I think the easiest solution would be to update your version of R to the latest (4.1.1) and then reinstall the ggtree package.

The reason you're running into this error is because the latest version of rvcheck (0.2.0) has removed the get_aes_var function. The current ggtree version (3.0.4) is aware of this change, and doesn't look for it. However, because you're using an old version of R, you're using also using an old version of both Bioconductor and subsequently the ggtree package. This older version still thinks get_aes_var should be present, and then fails when it isn't. "

ADD REPLY
1
Entering edit mode

This post does not fit the theme of this forum. Please ask this on https://support.bioconductor.org/

ADD REPLY
0
Entering edit mode

Thank you for your advise

ADD REPLY
0
Entering edit mode
3.1 years ago

The problem is that rvcheck v0.2.0 removed the function get_fun_from_pkg which clusterProfiler depends on. Until the package author removes this dependency you can install rvcheck v0.1.8 to get around the issue.

ADD COMMENT
1
Entering edit mode

This solution worked for me. Just FYI, the vresion is not v1.8.0, but v0.1.8 (rvcheck versions). I didn't check whether downgrading rvcheck breaks something else, though. To downgrade rvcheck:

require(devtools)
install_version("rvcheck", version = "0.1.8", repos = "http://cran.us.r-project.org")
ADD REPLY
0
Entering edit mode

Thanks, I've corrected my post!

ADD REPLY
0
Entering edit mode

I have the same problem and this solution worked for me. Thanks

ADD REPLY

Login before adding your answer.

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