Running examples in ‘plogr-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plogr-package
> ### Title: plogr: The 'plog' C++ Logging Library
> ### Aliases: plogr plogr-package
> 
> ### ** Examples
> 
> plogr_demo <- Rcpp::cppFunction(depends = "plogr", '
+ // C++ code begin
+ #include <plogr.h>
+ 
+ RObject plogr_demo() {
+   plog::init_r(plog::info);
+   LOG_INFO << "shown";
+   LOG_DEBUG << "not shown";
+   plog::init_r("DEBUG");
+   LOG_DEBUG << "shown now";
+   return R_NilValue;
+ }
+ 
+ #include <Rcpp.h> // not necessary to use plogr
+ // C++ code end
+ '
+ )
using C++ compiler: ‘g++-15 (Debian 15.2.0-12) 15.2.0’
make[1]: Entering directory '/tmp/RtmpY2vWM7/sourceCpp-x86_64-pc-linux-gnu-1.1.1/sourcecpp_65b374b67fa4d'
g++-15 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/Rcpp/include" -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include" -I"/tmp/RtmpY2vWM7/sourceCpp-x86_64-pc-linux-gnu-1.1.1" -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c file65b3737789cf5.cpp -o file65b3737789cf5.o
In file included from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include/plog/Log.h:7,
                 from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include/plogr.h:4,
                 from file65b3737789cf5.cpp:4:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include/plog/Record.h: In instantiation of ‘plog::Record& plog::Record::operator<<(const T&) [with T = wchar_t [2]]’:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include/plog/Record.h:30:22:   required from here
   30 |             *this << str;
      |                      ^~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include/plog/Record.h:37:23: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = char_traits<char>]’
   37 |             m_message << data;
      |             ~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/15/ostream:42,
                 from /usr/include/c++/15/iostream:43,
                 from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/Rcpp/include/RcppCommon.h:53,
                 from /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/Rcpp/include/Rcpp.h:27,
                 from file65b3737789cf5.cpp:3:
/usr/include/c++/15/bits/ostream.h:761:5: note: declared here
  761 |     operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
      |     ^~~~~~~~
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/plogr/include/plog/Record.h:37:23: note: use ‘-fdiagnostics-all-candidates’ to display considered candidates
   37 |             m_message << data;
      |             ~~~~~~~~~~^~~~~~~
make[1]: *** [/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf:197: file65b3737789cf5.o] Error 1
make[1]: Leaving directory '/tmp/RtmpY2vWM7/sourceCpp-x86_64-pc-linux-gnu-1.1.1/sourcecpp_65b374b67fa4d'
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir,  : 
  Error 1 occurred building shared library.
Calls: <Anonymous> -> sourceCpp
Execution halted