Problem installing svglite 2.0.0 on rhel8

I'm having trouble installing svglite on rhel8.

The error doesn't seem too helpful:

devSVG.cpp: In function ‘std::__cxx11::string get_id(SVGDesc*)’:
devSVG.cpp:532:17: error: ‘cpp11::strings’ {aka ‘class cpp11::r_vectorcpp11::r_string’} has no member named ‘empty’
if (svgd->ids.empty()) {
^~~~~
make: *** [/opt/R/3.6.3/lib/R/etc/Makeconf:177: devSVG.o] Error 1
ERROR: compilation failed for package ‘svglite’

If i copy a version of it in my user lib, i can load it fine, so I don't think it's a dependency issue.

Same error here. But with R version 4.2.2

Mine works now since it's installing 2.1.1....so must've been an issue with 2.0.0.