Running 'testthat.R' [130s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(mixl)
  > 
  > test_check("mixl")
        $car8_1       $car8_2       $car8_3       $car8_4      $car13_1 
       "car8_1"      "car8_2"      "car8_3"      "car8_4"     "car13_1" 
       $car13_2      $car13_3      $car13_4      $car21_1      $car21_2 
      "car13_2"     "car13_3"     "car13_4"     "car21_1"     "car21_2" 
       $car21_3      $car21_4      $car23_1      $car23_2      $car23_3 
      "car21_3"     "car21_4"     "car23_1"     "car23_2"     "car23_3" 
       $car23_4        $pt3_1        $pt3_2        $pt3_3        $pt3_4 
      "car23_4"       "pt3_1"       "pt3_2"       "pt3_3"       "pt3_4" 
        $distie          $age        $urban          $sex      $tt_w_rp 
       "distie"         "age"       "urban"         "sex"     "tt_w_rp" 
       $tt_b_rp      $tt_c_rp      $tc_c_rp     $tt_pt_rp   $trns_pt_rp 
      "tt_b_rp"     "tt_c_rp"     "tc_c_rp"    "tt_pt_rp"  "trns_pt_rp" 
     $acc_pt_rp   $freq_pt_rp  $tc_pt_rp_a1     $tt_bf_mc      $tt_v_mc 
    "acc_pt_rp"  "freq_pt_rp" "tc_pt_rp_a1"    "tt_bf_mc"     "tt_v_mc" 
      $tt_cp_mc    $acc_cp_mc      $r_cp_mc      $c_cp_mc     $tt_cs_mc 
     "tt_cp_mc"   "acc_cp_mc"     "r_cp_mc"     "c_cp_mc"    "tt_cs_mc" 
     $acc_cs_mc      $c_cs_mc     $tt_pt_mc     $tr_pt_mc    $acc_pt_mc 
    "acc_cs_mc"     "c_cs_mc"    "tt_pt_mc"    "tr_pt_mc"   "acc_pt_mc" 
       $s_pt_mc      $c_pt_mc    $tt_a1_rcc     $q_a1_rcc   $acc_a1_rcc 
      "s_pt_mc"     "c_pt_mc"   "tt_a1_rcc"    "q_a1_rcc"  "acc_a1_rcc" 
      $c_a1_rcc    $tt_a2_rcc     $q_a2_rcc   $acc_a2_rcc     $c_a2_rcc 
     "c_a1_rcc"   "tt_a2_rcc"    "q_a2_rcc"  "acc_a2_rcc"    "c_a2_rcc" 
     $tt_a3_rcc     $q_a3_rcc   $acc_a3_rcc     $c_a3_rcc   $tt_a1_rcpt 
    "tt_a3_rcc"    "q_a3_rcc"  "acc_a3_rcc"    "c_a3_rcc"  "tt_a1_rcpt" 
   $acc_a1_rcpt   $tr_a1_rcpt    $f_a1_rcpt    $c_a1_rcpt   $tt_a2_rcpt 
  "acc_a1_rcpt"  "tr_a1_rcpt"   "f_a1_rcpt"   "c_a1_rcpt"  "tt_a2_rcpt" 
   $acc_a2_rcpt   $tr_a2_rcpt    $f_a2_rcpt    $c_a2_rcpt   $tt_a3_rcpt 
  "acc_a2_rcpt"  "tr_a2_rcpt"   "f_a2_rcpt"   "c_a2_rcpt"  "tt_a3_rcpt" 
   $acc_a3_rcpt   $tr_a3_rcpt    $f_a3_rcpt    $c_a3_rcpt 
  "acc_a3_rcpt"  "tr_a3_rcpt"   "f_a3_rcpt"   "c_a3_rcpt" 
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpiQ2frV/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_f49472a365c8'
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpiQ2frV/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_f49472a365c8'
  make[1]: Entering directory '/d/temp/2026_04_17_01_50_00_1722/RtmpiQ2frV/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_f49472a365c8'
  g++ -std=gnu++20  -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/RCompile/CRANpkg/lib/4.6/mixl/include"  -I"D:/RCompile/CRANpkg/lib/4.6/Rcpp/include" -I"D:/temp/2026_04_17_01_50_00_1722/RtmpiQ2frV/sourceCpp-x86_64-w64-mingw32-1.1.1"   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp    -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c filef49428e4640.cpp -o filef49428e4640.o
  In file included from D:/RCompile/CRANpkg/lib/4.6/Rcpp/include/Rcpp.h:49,
                   from filef49428e4640.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: filef49428e4640.o] Error 1
  make[1]: Leaving directory '/d/temp/2026_04_17_01_50_00_1722/RtmpiQ2frV/sourceCpp-x86_64-w64-mingw32-1.1.1/sourcecpp_f49472a365c8'
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 28 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (5): 'test_hybrid_choice.R:134:1', 'test_maxlikelihood.R:32:1',
    'test_posteriors.R:20:1', 'test_prediction.R:10:1', 'test_utilities.R:8:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_maxlikelihood.R:15:5'): A basic MNL model converges and creates the output ──
  Error in `Rcpp::sourceCpp(code = e1$cpp_code, env = cpp_container, ...)`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─mixl::specify_model(mnl_test, Train, rebuild = T) at test_maxlikelihood.R:15:5
   2.   └─Rcpp::sourceCpp(code = e1$cpp_code, env = cpp_container, ...)
  
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 28 ]
  Error:
  ! Test failures.
  Execution halted