r studio package installation error

I am trying to install R studio package "ggpubr" but I am getting the following error:

library(ggpubr) publication graphs
Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.6.0 is already loaded, but >= 3.6.1 is required
In addition: Warning message:
package ‘ggpubr’ was built under R version 4.2.3

please advise. TIA

You need to upgrade your version of the cli package and that may require updating your version of R. Try running

install.packages("cli")

If that installs version 3.6.2 (the latest), that should fix your problem. Otherwise, update your R version also.

1 Like

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.