Running 'test-all.R' [17s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library(testthat)
  > library(Rcereal)
  > 
  > test_check("Rcereal")
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpquCD2c/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_1a3d02519517c'
  g++ -std=gnu++20  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include" -I"D:/RCompile/CRANpkg/lib/4.6/Rcereal/include" -I"D:/RCompile/CRANpkg/local/4.6/Rcereal.Rcheck/tests/testthat/cpp"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c test_struct_Rcpp.cpp -o test_struct_Rcpp.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from test_struct_Rcpp.cpp:6:
  D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h: In constructor 'Rcpp::Function_Impl<StoragePolicy>::Function_Impl(const std::string&, const std::string&)':
  D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp/Function.h:75:65: error: 'R_NamespaceRegistry' was not declared in this scope
     75 |             Shield<SEXP> env(R_getVarEx(Rf_install(ns.c_str()), R_NamespaceRegistry, FALSE, R_UnboundValue));
        |                                                                 ^~~~~~~~~~~~~~~~~~~
  make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:304: test_struct_Rcpp.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpquCD2c/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_1a3d02519517c'
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 1 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • !Sys.getenv("RCEREAL_TEST_UPDATE") %in% TRUE is TRUE (1):
    'test-update_version.R:21:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-struct.R:10:5'): serialize and deserialize with Rcpp ───────────
  Error in `Rcpp::sourceCpp(file = "cpp/test_struct_Rcpp.cpp")`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─Rcpp::sourceCpp(file = "cpp/test_struct_Rcpp.cpp") at test-struct.R:10:5
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 1 ]
  Error:
  ! Test failures.
  Execution halted