dependency loop for install
Firstly, systemfonts is a dependency of devtools but if there is an issue installing systemfonts, the described alternative is to install using devtools. New system, devtools doesn't exist yet, if it did I wouldn't have spent the last couple hours trying to get a font to work :)
g++ -std=gnu++17 -I"/usr/lib64/R/include" -DNDEBUG -I'/usr/lib/R/library/cpp11/include' -fpic -O2 -g -c caches.cpp -o caches.o In file included from caches.h:6, from caches.cpp:1: FontDescriptor.h:7:10: fatal error: ft2build.h: No such file or directory 7 | #include <ft2build.h>
The following lets the install get further: install.packages("systemfonts",configure.vars=c("INCLUDE_DIR='/usr/include/freetype2'"))
But then it still fails later:
** testing if installed package can be loaded from temporary location Error: package or namespace load failed for ‘systemfonts’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/lib/R/library/00LOCK-systemfonts/00new/systemfonts/libs/systemfonts.so': /usr/lib/R/library/00LOCK-systemfonts/00new/systemfonts/libs/systemfonts.so: undefined symbol: FcFontSetDestroy