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: ‘Debian clang version 21.1.8 (3)’
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmp84f9Z8/sourceCpp-x86_64-pc-linux-gnu-1.1.1/sourcecpp_3bfa3521756d9c'
clang++-21 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/plogr/include" -I"/home/hornik/tmp/scratch/Rtmp84f9Z8/sourceCpp-x86_64-pc-linux-gnu-1.1.1" -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O3 -Wall -pedantic   -c file3bfa352c083f89.cpp -o file3bfa352c083f89.o
In file included from file3bfa352c083f89.cpp:4:
In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/plogr/include/plogr.h:4:
In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/plogr/include/plog/Log.h:7:
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/plogr/include/plog/Record.h:37:23: error: overload resolution selected deleted operator '<<'
   37 |             m_message << data;
      |             ~~~~~~~~~ ^  ~~~~
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/plogr/include/plog/Record.h:30:19: note: in instantiation of function template specialization 'plog::Record::operator<<<wchar_t[2]>' requested here
   30 |             *this << str;
      |                   ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:761:5: note: candidate function [with _Traits = std::char_traits<char>] has been explicitly deleted
  761 |     operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:182:7: note: candidate function
  182 |       operator<<(bool __n)
      |       ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:301:7: note: candidate function
  301 |       operator<<(const void* __p)
      |       ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/system_error:341:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const error_code' for 2nd argument
  341 |     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
      |     ^                                                ~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:636:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'char' for 2nd argument
  636 |     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
      |     ^                                                 ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:642:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'char' for 2nd argument
  642 |     operator<<(basic_ostream<char, _Traits>& __out, char __c)
      |     ^                                               ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:653:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'signed char' for 2nd argument
  653 |     operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
      |     ^                                               ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:658:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'unsigned char' for 2nd argument
  658 |     operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
      |     ^                                               ~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:667:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'wchar_t' for 2nd argument
  667 |     operator<<(basic_ostream<char, _Traits>&, wchar_t) = delete;
      |     ^                                         ~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:672:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'char8_t' for 2nd argument
  672 |     operator<<(basic_ostream<char, _Traits>&, char8_t) = delete;
      |     ^                                         ~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:677:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'char16_t' for 2nd argument
  677 |     operator<<(basic_ostream<char, _Traits>&, char16_t) = delete;
      |     ^                                         ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:681:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'char32_t' for 2nd argument
  681 |     operator<<(basic_ostream<char, _Traits>&, char32_t) = delete;
      |     ^                                         ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:734:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const char *' for 2nd argument
  734 |     operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
      |     ^                                               ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:747:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const signed char *' for 2nd argument
  747 |     operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
      |     ^                                               ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:752:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const unsigned char *' for 2nd argument
  752 |     operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
      |     ^                                               ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:766:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const char8_t *' for 2nd argument
  766 |     operator<<(basic_ostream<char, _Traits>&, const char8_t*) = delete;
      |     ^                                         ~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:771:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const char16_t *' for 2nd argument
  771 |     operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete;
      |     ^                                         ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:775:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const char32_t *' for 2nd argument
  775 |     operator<<(basic_ostream<char, _Traits>&, const char32_t*) = delete;
      |     ^                                         ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.tcc:311:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to 'const char *' for 2nd argument
  311 |     operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
      |     ^                                                 ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:89:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to '_Resetiosflags' for 2nd argument
   89 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f)
      |     ^                                                ~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:119:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to '_Setiosflags' for 2nd argument
  119 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f)
      |     ^                                                ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:153:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to '_Setbase' for 2nd argument
  153 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f)
      |     ^                                                ~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:220:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to '_Setprecision' for 2nd argument
  220 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f)
      |     ^                                                ~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:250:5: note: candidate function template not viable: no known conversion from 'const wchar_t[2]' to '_Setw' for 2nd argument
  250 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f)
      |     ^                                                ~~~~~~~~~
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include/Rcpp/complex.h:76:23: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'const Rcomplex' for 2nd argument
   76 | inline std::ostream & operator<<(std::ostream &os, const Rcomplex& cplx) {
      |                       ^                            ~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/cstddef:130:5: note: candidate function template not viable: no known conversion from 'util::nstringstream' (aka 'basic_stringstream<char>') to 'byte' for 1st argument
  130 |     operator<<(byte __b, _IntegerType __shift) noexcept
      |     ^          ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:626:5: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'const wchar_t *')
  626 |     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:717:5: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'wchar_t')
  717 |     operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/string_view:767:5: note: candidate template ignored: could not match 'basic_string_view<_CharT, _Traits>' against 'const wchar_t *'
  767 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/basic_string.h:4367:5: note: candidate template ignored: could not match 'const basic_string<_CharT, _Traits, _Alloc>' against 'const wchar_t[2]'
 4367 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:687:5: note: candidate template ignored: could not match 'basic_ostream' against 'util::basic_stringstream'
  687 |     operator<<(basic_ostream<wchar_t, _Traits>&, char8_t) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:692:5: note: candidate template ignored: could not match 'basic_ostream' against 'util::basic_stringstream'
  692 |     operator<<(basic_ostream<wchar_t, _Traits>&, char16_t) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:696:5: note: candidate template ignored: could not match 'basic_ostream' against 'util::basic_stringstream'
  696 |     operator<<(basic_ostream<wchar_t, _Traits>&, char32_t) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:781:5: note: candidate template ignored: could not match 'basic_ostream' against 'util::basic_stringstream'
  781 |     operator<<(basic_ostream<wchar_t, _Traits>&, const char8_t*) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:786:5: note: candidate template ignored: could not match 'basic_ostream' against 'util::basic_stringstream'
  786 |     operator<<(basic_ostream<wchar_t, _Traits>&, const char16_t*) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:790:5: note: candidate template ignored: could not match 'basic_ostream' against 'util::basic_stringstream'
  790 |     operator<<(basic_ostream<wchar_t, _Traits>&, const char32_t*) = delete;
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:836:5: note: candidate template ignored: substitution failure [with _Ostream = util::nstringstream &, _Tp = wchar_t[2]]: constraints not satisfied for alias template '__rvalue_stream_insertion_t' [with _Os = std::basic_stringstream<char> &, _Tp = wchar_t[2]]
  835 |     inline __rvalue_stream_insertion_t<_Ostream, _Tp>
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  836 |     operator<<(_Ostream&& __os, const _Tp& __x)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:190:5: note: candidate template ignored: could not match '_Setfill<_CharT>' against 'const wchar_t *'
  190 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:323:5: note: candidate template ignored: could not match '_Put_money<_MoneyT>' against 'const wchar_t *'
  323 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/iomanip:375:5: note: candidate template ignored: could not match '_Put_time<_CharT>' against 'const wchar_t *'
  375 |     operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/complex:597:5: note: candidate template ignored: could not match 'const complex<_Tp>' against 'const wchar_t[2]'
  597 |     operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
      |     ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:116:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to '__ostream_type &(*)(__ostream_type &)' (aka 'basic_ostream<char, std::char_traits<char>> &(*)(basic_ostream<char, std::char_traits<char>> &)') for 1st argument
  116 |       operator<<(__ostream_type& (*__pf)(__ostream_type&))
      |       ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:125:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to '__ios_type &(*)(__ios_type &)' (aka 'basic_ios<char, std::char_traits<char>> &(*)(basic_ios<char, std::char_traits<char>> &)') for 1st argument
  125 |       operator<<(__ios_type& (*__pf)(__ios_type&))
      |       ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:135:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'ios_base &(*)(ios_base &)' for 1st argument
  135 |       operator<<(ios_base& (*__pf) (ios_base&))
      |       ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:174:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'long' for 1st argument
  174 |       operator<<(long __n)
      |       ^          ~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:178:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'unsigned long' for 1st argument
  178 |       operator<<(unsigned long __n)
      |       ^          ~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:186:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'short' for 1st argument
  186 |       operator<<(short __n);
      |       ^          ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:189:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'unsigned short' for 1st argument
  189 |       operator<<(unsigned short __n)
      |       ^          ~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:197:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'int' for 1st argument
  197 |       operator<<(int __n);
      |       ^          ~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:200:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'unsigned int' for 1st argument
  200 |       operator<<(unsigned int __n)
      |       ^          ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:211:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'long long' for 1st argument
  211 |       operator<<(long long __n)
      |       ^          ~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:215:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'unsigned long long' for 1st argument
  215 |       operator<<(unsigned long long __n)
      |       ^          ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:231:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'double' for 1st argument
  231 |       operator<<(double __f)
      |       ^          ~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:235:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'float' for 1st argument
  235 |       operator<<(float __f)
      |       ^          ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:243:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'long double' for 1st argument
  243 |       operator<<(long double __f)
      |       ^          ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:306:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  306 |       operator<<(nullptr_t)
      |       ^          ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ostream.h:339:7: note: candidate function not viable: no known conversion from 'const wchar_t[2]' to '__streambuf_type *' (aka 'basic_streambuf<char, std::char_traits<char>> *') for 1st argument
  339 |       operator<<(__streambuf_type* __sb);
      |       ^          ~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:197: file3bfa352c083f89.o] Error 1
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmp84f9Z8/sourceCpp-x86_64-pc-linux-gnu-1.1.1/sourcecpp_3bfa3521756d9c'
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir,  : 
  Error 1 occurred building shared library.
Calls: <Anonymous> -> sourceCpp
Execution halted