Error installing systemfonts package in R in Linux Ubuntu and Fedora

    I am trying to install systemfonts package via the command: install.packages("systemfonts"), but I am getting the following error:

    Code
    ERROR: configuration failed for package ‘systemfonts’
    * removing ‘/home/user/R/x86_64-pc-linux-gnu-library/4.1/systemfonts’

    Any help is appreciated!

    • Admin

    To resolve this issue, you need to install the required system development libraries using apt-get, and then install the R packages.

    If you are on Ubuntu follow the below steps:

    Open your Linux Terminal and run the following command to install libfontconfig1-dev , libharfbuzz-dev and libfribidi-dev


    Bash
    sudo apt install libfontconfig1-dev libharfbuzz-dev libfribidi-dev


    If you are on Fedora, run the following command:

    Bash
    sudo dnf install libfontconfig1-dev libharfbuzz-dev libfribidi-dev

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!