kassambara / ggpubr

'ggplot2' Based Publication Ready Plots
https://rpkgs.datanovia.com/ggpubr/
1.12k stars 165 forks source link

Can not install ggpubr with error '...namespace ‘vctrs’ 0.5.1 is already loaded, but >= 0.5.2 is required' #558

Open Wenorlando opened 1 year ago

Wenorlando commented 1 year ago

I tried to restart my Rstudio and check it is the updated version. Other packages or tips I may found on the internet and tried. Two of them are both not working to fix this issue.

https://www.researchgate.net/post/How_can_I_fix_error_with_loading_package_in_R

  1. have tried
    install.packages("rlang") remove.packages("rlang") install.packages("rlang")

and

  1. install.packages("backports") But both are not worked. Error message is below. Thanks!

#library(ggpubr)

`session_info(

Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘vctrs’ 0.5.1 is already loaded, but >= 0.5.2 is required)`

# please paste here the result of
devtools::session_info()
Wenorlando commented 1 year ago

I just found it is a kind common issue to other packages. Then I just found that I need to check "vctrs" followed by the guides via the link,

https://stackoverflow.com/questions/60451908/tidyverse-not-loaded-it-says-namespace-vctrs-0-2-0-is-already-loaded-but