I tried to use library"survminer" but this error appeared:
Loading required package: ggpubr
Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘tidyselect’
Error: package ‘ggpubr’ could not be loaded
When I tried to install ggpubr. This shows:
Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘tidyselect’
I reinstatt R and Rstudio. I updated both of them to the lasted version but the problem still there?
Any suggestions?
This means that you're missing Xcode Command Line Tools (I'm assuming you're on a Mac). Even though this post is for El Capitan, I know the same holds for Sierra (and I assume High Sierra, and Mojave, even, though you might want to search around a bit if you're on the last one).