You can install the development version of unigd from GitHub with:

# install.packages("remotes")

See system requirements for troubleshooting.

System requirements

libpng and X11 are required on unix like systems (e.g. Linux, macOS). Cairo is optional on unix like systems to enable PNG, PDF, EPS and PS renderers. libtiff is required on unix like systems to enable TIFF renderers.


If libpng is missing install it via:

brew install libpng

If X11 is missing the error message will include the text:

unable to load shared object [...] systemfonts/libs/ [...]

Install XQuartz. (see:


For source installation on Linux, the fontconfig freetype2 library is required to install the {systemfonts} package, which is a dependency of unigd.

Debian, Ubuntu, etc.

apt install libfontconfig1-dev

Fedora, CentOS, RHEL, etc.

dnf install fontconfig-devel