- using R version 4.6.0 beta (2026-04-16 r89899 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-04-17 11:38:29 UTC
- checking for file 'mixl/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'mixl' version '1.3.5'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'mixl' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s] OK
- checking loading without being on the library search path ... [0s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [3s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking include directives in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [2s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [131s] ERROR
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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s] OK
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [4s] OK
- DONE
Status: 1 ERROR