I am using Windows.
I just updated R to version 4.0.4. I tried to install tidyverse.
After submitting
install.packages("tidyverse")
A lot of packages were downloaded. During this process, this showed up in my console
There is a binary version available but the source version is later:
binary source needs_compilation
utf8 1.1.4 1.2.1 TRUE
Then, much later in the process: installing the source package ‘utf8’
trying URL 'https://cran.rstudio.com/src/contrib/utf8_1.2.1.tar.gz' Content type 'application/x-gzip' length 239463 bytes (233 KB) downloaded 233 KB
* installing *source* package 'utf8' ...
** package 'utf8' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
"c:/rtools40/mingw32/bin/"gcc -I"C:/PROGRA~1/R/R-4.0.4/include" -DNDEBUG -Iutf8lite/src -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c as_utf8.c -o as_utf8.o
sh: c:/rtools40/mingw32/bin/gcc: No such file or directory
make: *** [C:/PROGRA~1/R/R-4.0.4/etc/i386/Makeconf:222: as_utf8.o] Error 127
ERROR: compilation failed for package 'utf8'
* removing 'C:/Users/Peter/Documents/R/win-library/4.0/utf8'
Warning in install.packages :
installation of package ‘utf8’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Peter\AppData\Local\Temp\Rtmpempsyo\downloaded_packages’
I understand very little of this, other than that the package isn't installed and that tidyverse can't be run without it. I.e.
library(tidyverse)
Results in
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘utf8’
How can I fix this?