Tidyverse Failing to Install issue with textshapingpackage

I am trying to reinstall tidyverse and it's failing for me.

For context I am on R Studio server (I do not have sudo access so no solution can ask me to make changes to my instance) and I was previously running tidyverse just fine. I restarted my session and normally it just unloads the packages but something went wrong and it uninstalled everything. Now I am trying to reinstall tidyverse and it keeps failing. It looks like the issue is with a package called 'textshaping' based off of this error: Error: install of package 'textshaping' failed [error code 1]

This is the full print out I get from the install.

Retrieving 'https://cloud.r-project.org/src/contrib/tidyverse_2.0.0.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/ragg_1.2.5.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/textshaping_0.3.6.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/readxl_1.4.2.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/reprex_2.0.2.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/knitr_1.42.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/evaluate_0.20.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/highr_0.10.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/xfun_0.39.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/yaml_2.3.7.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/rmarkdown_2.21.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/bslib_0.4.2.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/htmltools_0.5.5.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/digest_0.6.31.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/base64enc_0.1-3.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/sass_0.4.5.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/jquerylib_0.1.4.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/fontawesome_0.5.1.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/tinytex_0.45.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/rstudioapi_0.14.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/rvest_1.0.3.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/selectr_0.4-2.tar.gz' ...
	OK [file is up to date]
Retrieving 'https://cloud.r-project.org/src/contrib/xml2_1.3.3.tar.gz' ...
	OK [file is up to date]
Installing backports [1.4.1] ...
	OK [linked cache]
Installing cli [3.6.1] ...
	OK [linked cache]
Installing rlang [1.1.0] ...
	OK [linked cache]
Installing vctrs [0.6.2] ...
	OK [linked cache]
Installing pillar [1.9.0] ...
	OK [linked cache]
Installing tibble [3.2.1] ...
	OK [linked cache]
Installing dplyr [1.1.2] ...
	OK [linked cache]
Installing ellipsis [0.3.2] ...
	OK [linked cache]
Installing purrr [1.0.1] ...
	OK [linked cache]
Installing stringi [1.7.12] ...
	OK [linked cache]
Installing stringr [1.5.0] ...
	OK [linked cache]
Installing cpp11 [0.4.3] ...
	OK [linked cache]
Installing tidyr [1.3.0] ...
	OK [linked cache]
Installing broom [1.0.4] ...
	OK [linked cache]
Installing fastmap [1.1.1] ...
	OK [linked cache]
Installing cachem [1.0.7] ...
	OK [linked cache]
Installing memoise [2.0.1] ...
	OK [linked cache]
Installing conflicted [1.2.0] ...
	OK [linked cache]
Installing blob [1.2.4] ...
	OK [linked cache]
Installing DBI [1.1.3] ...
	OK [linked cache]
Installing dbplyr [2.3.2] ...
	OK [linked cache]
Installing dtplyr [1.3.1] ...
	OK [linked cache]
Installing forcats [1.0.0] ...
	OK [linked cache]
Installing gtable [0.3.3] ...
	OK [linked cache]
Installing isoband [0.2.7] ...
	OK [linked cache]
Installing farver [2.1.1] ...
	OK [linked cache]
Installing labeling [0.4.2] ...
	OK [linked cache]
Installing colorspace [2.1-0] ...
	OK [linked cache]
Installing munsell [0.5.0] ...
	OK [linked cache]
Installing RColorBrewer [1.1-3] ...
	OK [linked cache]
Installing viridisLite [0.4.1] ...
	OK [linked cache]
Installing scales [1.2.1] ...
	OK [linked cache]
Installing ggplot2 [3.4.2] ...
	OK [linked cache]
Installing fs [1.6.2] ...
	OK [linked cache]
Installing curl [5.0.0] ...
	OK [linked cache]
Installing jsonlite [1.8.4] ...
	OK [linked cache]
Installing mime [0.12] ...
	OK [linked cache]
Installing sys [3.4.1] ...
	OK [linked cache]
Installing askpass [1.1] ...
	OK [linked cache]
Installing openssl [2.0.6] ...
	OK [linked cache]
Installing httr [1.4.5] ...
	OK [linked cache]
Installing rappdirs [0.3.3] ...
	OK [linked cache]
Installing gargle [1.4.0] ...
	OK [linked cache]
Installing uuid [1.1-0] ...
	OK [linked cache]
Installing googledrive [2.1.0] ...
	OK [linked cache]
Installing rematch [1.0.1] ...
	OK [linked cache]
Installing cellranger [1.1.0] ...
	OK [linked cache]
Installing ids [1.0.1] ...
	OK [linked cache]
Installing rematch2 [2.1.2] ...
	OK [linked cache]
Installing googlesheets4 [1.1.0] ...
	OK [linked cache]
Installing hms [1.1.3] ...
	OK [linked cache]
Installing clipr [0.8.0] ...
	OK [linked cache]
Installing bit [4.0.5] ...
	OK [linked cache]
Installing bit64 [4.0.5] ...
	OK [linked cache]
Installing tzdb [0.3.0] ...
	OK [linked cache]
Installing prettyunits [1.1.1] ...
	OK [linked cache]
Installing progress [1.2.2] ...
	OK [linked cache]
Installing vroom [1.6.1] ...
	OK [linked cache]
Installing readr [2.1.4] ...
	OK [linked cache]
Installing haven [2.5.2] ...
	OK [linked cache]
Installing timechange [0.2.0] ...
	OK [linked cache]
Installing lubridate [1.9.2] ...
	OK [linked cache]
Installing modelr [0.1.11] ...
	OK [linked cache]
Installing systemfonts [1.0.4] ...
	OK [linked cache]
Installing textshaping [0.3.6] ...
	FAILED
Error installing package 'textshaping':
=======================================

* installing *source* package ‘textshaping’ ...
** package ‘textshaping’ successfully unpacked and MD5 sums checked
** using staged installation
Package harfbuzz was not found in the pkg-config search path.
Perhaps you should add the directory containing `harfbuzz.pc'
to the PKG_CONFIG_PATH environment variable
No package 'harfbuzz' found
Package fribidi was not found in the pkg-config search path.
Perhaps you should add the directory containing `fribidi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fribidi' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lharfbuzz -lfribidi -lpng
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
 * deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
 * rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
 * csw: libharfbuzz_dev libfribidi_dev (Solaris)
 * brew: harfbuzz fribidi (OSX)
If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.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] ---------------------------
<stdin>:1:10: fatal error: hb-ft.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’
* removing ‘/home/kchampion/repos/inequality/renv/staging/3/textshaping’
Error: install of package 'textshaping' failed [error code 1]

Also I am using a .Rproj for my work and a renv.lock file but trying to restore from renv also failed. I don't really understand why I suddenly can't install tidyverse anymore.

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