Running 'doRUnit.R' [167s]
Running the tests in 'tests/doRUnit.R' failed.
Complete output:
  > stopifnot(require(RUnit, quietly = TRUE))
  > stopifnot(require(Rcpp, quietly = TRUE))
  > stopifnot(require(RcppParallel, quietly = TRUE))
  
  Attaching package: 'RcppParallel'
  
  The following object is masked from 'package:Rcpp':
  
      LdFlags
  
  > 
  > ## Set a seed to make the test deterministic
  > set.seed(42)
  > 
  > ## Set a default backend
  > backend <- Sys.getenv("RCPP_PARALLEL_BACKEND", unset = NA)
  > if (is.na(backend))
  +    Sys.setenv(RCPP_PARALLEL_BACKEND = "tinythread")
  > 
  > writeLines(paste("Using backend:", Sys.getenv("RCPP_PARALLEL_BACKEND")))
  Using backend: tinythread
  > 
  > ## Define tests
  > suite <- defineTestSuite(
  +    name = "RcppParallel Unit Tests",
  +    dirs = system.file("tests", package = "RcppParallel")
  + )
  > 
  > ## Based on practice in Rcpp to avoid some test failures
  > Sys.setenv("R_TESTS" = "")
  > 
  > ## Run tests
  > tests <- runTestSuite(suite)
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b7847b2c154b'
  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/RcppParallel/include" -I"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/cpp"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c distance.cpp -o distance.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from distance.cpp:7:
  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: distance.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b7847b2c154b'
  Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b7845de71c99'
  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/RcppParallel/include" -I"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/cpp"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c innerproduct.cpp -o innerproduct.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from innerproduct.cpp:7:
  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: innerproduct.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b7845de71c99'
  Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b7843ea271f'
  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/RcppParallel/include" -I"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/cpp"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c sum.cpp -o sum.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from sum.cpp:7:
  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: sum.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b7843ea271f'
  Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b784711b6f'
  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/RcppParallel/include" -I"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/cpp"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c transform.cpp -o transform.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from transform.cpp:7:
  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: transform.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b784711b6f'
  Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b784682f32'
  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/RcppParallel/include" -I"D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/cpp"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -DRCPP_PARALLEL_USE_TBB=1   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c truefalse_macros.cpp -o truefalse_macros.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from truefalse_macros.cpp:11:
  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: truefalse_macros.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/Rtmpw10Zm5/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_b784682f32'
  Error in sourceCpp(system.file("tests/cpp/truefalse_macros.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  In addition: Warning messages:
  1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: Marsaglia-Multicarry has poor statistical properties
  2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) :
    RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry
  > 
  > ## Print results
  > printTextProtocol(tests)
  RUNIT TEST PROTOCOL -- Fri Apr 17 11:09:33 2026 
  *********************************************** 
  Number of test functions: 5 
  Number of errors: 5 
  Number of failures: 0 
  
   
  1 Test Suite : 
  RcppParallel Unit Tests - 5 test functions, 5 errors, 0 failures
  ERROR in D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.distance.R: Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.distance.R : Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  ERROR in D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.innerproduct.R: Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.innerproduct.R : Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  ERROR in D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.sum.R: Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.sum.R : Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  ERROR in D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.transform.R: Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.transform.R : Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  ERROR in D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.truefalse_macros.R: Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.truefalse_macros.R : Error in sourceCpp(system.file("tests/cpp/truefalse_macros.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  
  
  
  Details 
  *************************** 
  Test Suite: RcppParallel Unit Tests 
  Test function regexp: ^test.+ 
  Test file regexp: ^runit.+\.[rR]$ 
  Involved directory: 
  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests 
  --------------------------- 
  Test file: D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.distance.R 
  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.distance.R: ERROR !! 
  Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.distance.R : Error in sourceCpp(system.file("tests/cpp/distance.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  --------------------------- 
  Test file: D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.innerproduct.R 
  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.innerproduct.R: ERROR !! 
  Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.innerproduct.R : Error in sourceCpp(system.file("tests/cpp/innerproduct.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  --------------------------- 
  Test file: D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.sum.R 
  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.sum.R: ERROR !! 
  Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.sum.R : Error in sourceCpp(system.file("tests/cpp/sum.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  --------------------------- 
  Test file: D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.transform.R 
  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.transform.R: ERROR !! 
  Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.transform.R : Error in sourceCpp(system.file("tests/cpp/transform.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  --------------------------- 
  Test file: D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.truefalse_macros.R 
  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.truefalse_macros.R: ERROR !! 
  Error while sourcing  D:/RCompile/CRANpkg/lib/4.6/RcppParallel/tests/runit.truefalse_macros.R : Error in sourceCpp(system.file("tests/cpp/truefalse_macros.cpp", package = "RcppParallel")) : 
    Error 1 occurred building shared library.
  > 
  > ## Return success or failure to R CMD CHECK
  > if (getErrors(tests)$nFail > 0) {
  +    stop("TEST FAILED!")
  + }
  > 
  > if (getErrors(tests)$nErr > 0) {
  +    stop("TEST HAD ERRORS!")
  + }
  Error: TEST HAD ERRORS!
  Execution halted