Running 'testthat.R' [25s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("dyngen")
  Loading required package: dyngen
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMngTfg/file6d0c3f703706/gillespie/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_6d0c1f2ee2f'
  g++ -std=gnu++20  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include" -I"D:/temp/2026_04_17_01_50_00_1722/RtmpMngTfg/file6d0c3f703706/gillespie/sourceCpp-x86_64-w64-mingw32-1.1.1"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c file6d0c92155ab.cpp -o file6d0c92155ab.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from file6d0c92155ab.cpp:1:
  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: file6d0c92155ab.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpMngTfg/file6d0c3f703706/gillespie/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_6d0c1f2ee2f'
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 64 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-generate_dataset.R:27:1'): (code run outside of `test_that()`) ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(rcpp_codes, RcppXPtrUtils::cppXPtr, cacheDir = tmpdir, includes = if (hardcode_params) paste0("#define CONST_", names(params), " ", params, "\n", collapse = "") else character())`: ℹ In index: 1.
  Caused by error in `sourceCpp()`:
  ! Error 1 occurred building shared library.
  Backtrace:
       ▆
    1. ├─dyngen::generate_dataset(init, make_plots = TRUE) at test-generate_dataset.R:27:1
    2. │ ├─dyngen::generate_experiment(generate_cells(generate_gold_standard(generate_kinetics(generate_feature_network(generate_tf_network(model))))))
    3. │ ├─dyngen::generate_cells(generate_gold_standard(generate_kinetics(generate_feature_network(generate_tf_network(model)))))
    4. │ └─dyngen::generate_gold_standard(generate_kinetics(generate_feature_network(generate_tf_network(model))))
    5. │   └─dyngen:::.generate_gold_precompile_reactions(model)
    6. │     └─GillespieSSA2::compile_reactions(...)
    7. │       └─purrr::map(...)
    8. │         └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    9. │           ├─purrr:::with_indexed_errors(...)
   10. │           │ └─base::withCallingHandlers(...)
   11. │           ├─purrr:::call_with_cleanup(...)
   12. │           └─RcppXPtrUtils (local) .f(.x[[i]], ...)
   13. │             └─Rcpp::cppFunction(...)
   14. │               └─Rcpp::sourceCpp(...)
   15. │                 └─base::stop("Error ", status, " occurred building shared library.")
   16. └─base::.handleSimpleError(...)
   17.   └─purrr (local) h(simpleError(msg, call))
   18.     └─cli::cli_abort(...)
   19.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 64 ]
  Error:
  ! Test failures.
  Execution halted