Based on the error message, "ERROR: dependencies 'systemfonts' and 'textshaping' are not available for package 'svglite,'" the installation is failing because R cannot install these two required packages. This often happens on Linux systems like Ubuntu when R packages need system libraries to be installed before they can be compiled.
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:
1- Install required libraries:
Open your Linux Terminal and run the following command to install libfontconfig1-dev , libharfbuzz-dev and libfribidi-dev