dcurver package does not compile

Working on Pop! OS. Updated to the newest version of RStudio, and ran into a problem reinstalling all the packages, specifically with the "dcurver" package. The compiler doesn't seem to like it anymore, even though it installed fine on the older version. I get the following when I try to install

* installing *source* package ‘dcurver’ ...
** this is package ‘dcurver’ version ‘0.9.2’
** package ‘dcurver’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
using C++11
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppArmadillo/include'    -fopenmp  -fpic  -g -O2 -ffile-prefix-map=/build/r-base-rgGXCp/r-base-4.5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -c RcppExports.cpp -o RcppExports.o
In file included from /usr/lib/R/site-library/Rcpp/include/Rcpp/routines.h:26,
                 from /usr/lib/R/site-library/Rcpp/include/RcppCommon.h:127,
                 from /usr/lib/R/site-library/RcppArmadillo/include/RcppArmadilloForward.h:25,
                 from /usr/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
                 from RcppExports.cpp:4:
/usr/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function ‘std::streamsize Rcpp::Rstreambuf<OUTPUT>::xsputn(const char*, std::streamsize) [with bool OUTPUT = true; std::streamsize = long int]’:
/usr/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:53:20: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 2 has type ‘std::streamsize’ {aka ‘long int’} [-Wformat=]
   53 |         Rprintf("%.*s", num, s);
      |                  ~~^~   ~~~
      |                    |    |
      |                    int  std::streamsize {aka long int}
/usr/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function ‘std::streamsize Rcpp::Rstreambuf<OUTPUT>::xsputn(const char*, std::streamsize) [with bool OUTPUT = false; std::streamsize = long int]’:
/usr/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:57:21: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 2 has type ‘std::streamsize’ {aka ‘long int’} [-Wformat=]
   57 |         REprintf("%.*s", num, s);
      |                   ~~^~   ~~~
      |                     |    |
      |                     int  std::streamsize {aka long int}
In file included from /usr/lib/R/site-library/Rcpp/include/RcppCommon.h:180,
                 from /usr/lib/R/site-library/RcppArmadillo/include/RcppArmadilloForward.h:25,
                 from /usr/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
                 from RcppExports.cpp:4:
/usr/lib/R/site-library/Rcpp/include/Rcpp/print.h: In function ‘void Rcpp::warningcall(SEXP, const string&)’:
/usr/lib/R/site-library/Rcpp/include/Rcpp/print.h:30:19: error: format not a string literal and no format arguments [-Werror=format-security]
   30 |     Rf_warningcall(call, s.c_str());
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make: *** [/usr/lib/R/etc/Makeconf:211: RcppExports.o] Error 1
ERROR: compilation failed for package ‘dcurver’
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/4.5/dcurver’
Warning in install.packages :
  installation of package ‘dcurver’ had non-zero exit status

Some notes.

Make sure you are using a supported version of Ubuntu.

If you don't want to compile packages from source, you can use binary packages from Posit Package Manager.

If you want to compile the package from source, have you customized the compilation? Do you have a ~/.R/Makevars file? Does the package compile if you delete (move) that file?