I am new to Rstudio and when I want to load/install pacman(pacman, psych, party, rio, and tidyverse), I could not load/install rio and tidyverse. Then I try to install them manually but it turns out as
"Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’"
"Error: package or namespace load failed for ‘rio’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’"
Thanks,it then says:
checking for local ICUDT_DIR... icu69/data
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in /private/var/folders/f8/962b59gx0g3_52pbbvpwrk680000gn/T/Rtmpv8QGma/R.INSTALL5be76b0dfbb/stringi': configure: error: C compiler cannot create executables See config.log' for more details
ERROR: configuration failed for package ‘stringi’
removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/stringi’
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/f8/962b59gx0g3_52pbbvpwrk680000gn/T/RtmpyuWMCh/downloaded_packages’
Can you post the complete console output you get? I think you are omitting some important parts but from what you are showing I can guess you are missing the recommended development tools for macOS systems and you are trying to compile stringi from source. https://mac.r-project.org/tools/
If that is the case you can choose to install the binary version that is a little older but doesn't require any extra compiler to be installed or you can install the aforementioned development tools and compile from source
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’
I've downloaded Xcode, have not solved the issue sofar.