I am new to R and I met troubles when I was installing package 'devtools'. My system is mac Ventura 13.0 and my R version is 3.6.2. After I enter install.packages('devtools'), it showed like the following and installation was not completed. Anyone could help me please? Thank you
install.packages('devtools')
also installing the dependencies ‘rmarkdown’, ‘knitr’, ‘stringi’, ‘stringr’, ‘pkgdown’, ‘roxygen2’
There are binary versions available but the source versions are
later:
binary source needs_compilation
rmarkdown 2.11 2.18 FALSE
knitr 1.37 1.40 FALSE
stringi 1.7.6 1.7.8 TRUE
stringr 1.4.0 1.4.1 FALSE
pkgdown 1.6.1 2.0.6 FALSE
roxygen2 7.1.2 7.2.1 TRUE
devtools 2.4.3 2.4.5 FALSE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel) y
installing the source packages ‘rmarkdown’, ‘knitr’, ‘stringi’, ‘stringr’, ‘pkgdown’, ‘roxygen2’, ‘devtools’
t==============================================
downloaded 3.1 MB (src/contrib/rmarkdown_2.18)
t========================================
downloaded 882 KB(src/contrib/knitr_1.40)
t=========================================
downloaded 7.7 MB(src/contrib/stringi_1.7.8)
t=========================================
downloaded 133 KB(src/contrib/stringr_1.4.1)
t=======================================
downloaded 850 KB(src/contrib/pkgdown_2.0.6)
t==========================================
downloaded 272 KB(src/contrib/roxygen2_7.2.1)
t========================================
downloaded 365 KB(src/contrib/devtools_2.4.5)
- installing source package ‘stringi’ ...
** package ‘stringi’ successfully unpacked and MD5 sums checked
** using staged installation
checking for R_HOME... /Library/Frameworks/R.framework/Resources
checking for R... /Library/Frameworks/R.framework/Resources/bin/R
checking for endianness... little
checking for R >= 3.1.0 for C++11 use... yes
checking for R < 3.4.0 for CXX1X flag use... no
checking for cat... /bin/cat
checking for local ICUDT_DIR... icu69/data
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking whether the C++ compiler supports the long long type... yes
checking whether the compiler implements namespaces... yes
checking whether the compiler supports the Standard Template Library... yes
checking whether std::map is available... yes
checking for pkg-config... no
*** pkg-config cannot be found
*** Trying with 'standard' fallback flags
checking whether an ICU4C-based project can be built... no
*** This version of ICU4C cannot be used.
*** Using the ICU 69 bundle.
checking whether we may compile src/icu69/common/putil.cpp... yes
checking whether we may compile src/icu69/i18n/number_affixutils.cpp... yes
checking whether alignof(std::max_align_t) is available... yes
checking whether the ICU data library can be downloaded... downloading the ICU data library (icudt)
output path: icu69/data/icu4c-69_1-data-bin-l.zip
trying URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu69/data/icu4c-69_1-data-bin-l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu69/data/icu4c-69_1-data-bin-l.zip'
trying URL 'http//raw.githubusercontent.com/gagolews/stringi/master/src/icu69/data/icu4c-69_1-data-bin-l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL 'http//raw.githubusercontent.com/gagolews/stringi/master/src/icu69/data/icu4c-69_1-data-bin-l.zip'
icudt download failed
Error: Stopping on error
In addition: Warning messages:
1: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") :
URL 'https//raw.githubusercontent.com/gagolews/stringi/master/src/icu69/data/icu4c-69_1-data-bin-l.zip': status was 'Couldn't connect to server'
2: In download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb") :
URL 'http//raw.githubusercontent.com/gagolews/stringi/master/src/icu69/data/icu4c-69_1-data-bin-l.zip': status was 'Couldn't connect to server'
Execution halted
*** stringi cannot be built.
*** Failed to download the ICU data library (icudt). Stopping now.
*** For build environments that have no internet access,
*** see the INSTALL file for a workaround.
ERROR: configuration failed for package ‘stringi’
- removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/stringi’
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status
ERROR: dependency ‘stringi’ is not available for package ‘stringr’ - removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/stringr’
Warning in install.packages :
installation of package ‘stringr’ had non-zero exit status
ERROR: dependency ‘stringr’ is not available for package ‘knitr’ - removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/knitr’
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
ERROR: dependencies ‘knitr’, ‘stringr’ are not available for package ‘rmarkdown’ - removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown’
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
ERROR: dependencies ‘knitr’, ‘stringi’, ‘stringr’ are not available for package ‘roxygen2’ - removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/roxygen2’
Warning in install.packages :
installation of package ‘roxygen2’ had non-zero exit status
ERROR: dependency ‘rmarkdown’ is not available for package ‘pkgdown’ - removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/pkgdown’
Warning in install.packages :
installation of package ‘pkgdown’ had non-zero exit status
ERROR: dependencies ‘pkgdown’, ‘roxygen2’ are not available for package ‘devtools’ - removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/devtools’
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/9j/_2lrh9bs6_bfq61gn0kznn6r0000gn/T/RtmpIs9ux0/downloaded_packages’