Tidyverse installation non zero exit ERROR

I previously had tidyverse installed, but now I have all sorts of trouble trying to install and use tidyverse. Below is the error message I get. TIA!

install.packages("tidyverse") Installing package into ‘/home/seanbrawley808/R/x86_64-pc-linux-gnu-library/4.0’ (as ‘lib’ is unspecified) also installing the dependencies ‘systemfonts’, ‘textshaping’, ‘ragg’ trying URL 'https ://cloud.r-project.org/src/contrib/systemfonts_1.0.4.tar.gz' Content type 'application/x-gzip' length 81757 bytes (79 KB) ================================================== downloaded 79 KB trying URL 'https://cloud.r-project.org/src/contrib/textshaping_0.3.6.tar.gz' Content type 'application/x-gzip' length 35722 bytes (34 KB) ================================================== downloaded 34 KB trying URL 'h ttps://cloud.r-project. org/src/contrib/ragg_1.2.5.tar.gz' Content type 'application/x-gzip' length 427859 bytes (417 KB) ================================================== downloaded 417 KB trying URL 'https: //cloud.r-project.org/src/contrib/tidyverse_2.0.0.tar.gz' Content type 'application/x-gzip' length 704618 bytes (688 KB) ================================================== downloaded 688 KB * installing source package ‘systemfonts’ ... ** package ‘systemfonts’ successfully unpacked and MD5 sums checked ** using staged installation Package fontconfig was not found in the pkg-config search path. Perhaps you should add the directory containing fontconfig.pc' to the PKG_CONFIG_PATH environment variable No package 'fontconfig' found Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing freetype2.pc' to the PKG_CONFIG_PATH environment variable No package 'freetype2' found Using PKG_CFLAGS= Using PKG_LIBS=-lfontconfig -lfreetype --------------------------- [ANTICONF] -------------------------------- Configuration failed to find the fontconfig freetype2 library. Try installing: * deb: libfontconfig1-dev (Debian, Ubuntu, etc) * rpm: fontconfig-devel (Fedora, EPEL) * csw: fontconfig_dev (Solaris) * brew: freetype (OSX) If fontconfig freetype2 is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a fontconfig freetype2.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' -------------------------- [ERROR MESSAGE] --------------------------- :1:10: fatal error: fontconfig/fontconfig.h: No such file or directory compilation terminated. -------------------------------------------------------------------- ERROR: configuration failed for package ‘systemfonts’ * removing ‘/home/seanbrawley808/R/x86_64-pc-linux-gnu-library/4.0/systemfonts’ Warning in install.packages : installation of package ‘systemfonts’ had non-zero exit status ERROR: dependency ‘systemfonts’ is not available for package ‘textshaping’ * removing ‘/home/seanbrawley808/R/x86_64-pc-linux-gnu-library/4.0/textshaping’ Warning in install.packages : installation of package ‘textshaping’ had non-zero exit status ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’ * removing ‘/home/seanbrawley808/R/x86_64-pc-linux-gnu-library/4.0/ragg’ Warning in install.packages : installation of package ‘ragg’ had non-zero exit status ERROR: dependency ‘ragg’ is not available for package ‘tidyverse’ * removing ‘/home/seanbrawley808/R/x86_64-pc-linux-gnu-library/4.0/tidyverse’ Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status

You are missing a system library, follow the advice from the error message and download the corresponding package for your operating system.

How do I go about downloading a package to my specific system? Thank you in advance.

That depends, what operating system do you use?

This topic was automatically closed 21 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.