简体   繁体   中英

R: error with ggplot2 in loading ggraph

I'd like to use ggraph package , but loading it, I got this error:

library(ggraph)
Error: package or namespace load failed for ‘ggraph’:
 object ‘scale_type’ is not exported by 'namespace:ggplot2'

What does it mean? How can I fix it? I'm not finding any answer on the Internet. Thanks in advance.
I am running on Windows 10 this version of R:

    > shortRversion()
[1] "R-3.5.1_2018-07-02"

I was able to fix this specific error by reinstalling the latest ggplot2 version.

remove.packages("ggplot2")
install.packages("ggplot2")

It seems that ggraph depends on this current version of ggplot2 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM