Running 'testthat.R' [58s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RcppThread)
  > 
  > test_check("RcppThread")
   -latomicspecified C++11
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpuAsbgD/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_13a202528313b'
  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/RcppThread/include" -I"D:/RCompile/CRANpkg/local/4.6/RcppThread.Rcheck/tests"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c tests.cpp -o tests.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from tests.cpp:8:
  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: tests.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpuAsbgD/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_13a202528313b'
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('tests.R:6:5'): (code run outside of `test_that()`) ──────────────────
  Error in `Rcpp::sourceCpp(file = normalizePath("../tests.cpp"))`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─Rcpp::sourceCpp(file = normalizePath("../tests.cpp")) at tests.R:6:5
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted