Adding OBJCXX = clang++ -std=c++11
to the ~/.R/Makevars
file worked for me. You can pick whichever c++ version you'd like, as long as the required features are supported.
Source: the relevant Github thread is here: stackoverflow.com/questions/69790523/installing-systemfonts-package-from-cran-and-github-fails