Running ‘testthat.R’ [38s/51s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(psqn)
  Loading required package: Matrix
  > 
  > test_check("psqn")
  using C++ compiler: ‘Debian clang version 18.1.0 (rc4-1)’
  using C++11
  make[1]: Entering directory '/tmp/RtmpOSHJ9o/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_15748066f112b3'
  clang++-18 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include   -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppEigen/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/psqn/include" -I"/tmp/RtmpOSHJ9o/tmp-psqn-cpp-dir" -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic -Wno-error=enum-constexpr-conversion  -c mlogit-ex.cpp -o mlogit-ex.o
  In file included from mlogit-ex.cpp:23:
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/psqn/include/psqn-Rcpp-wrapper.h:6:10: fatal error: 'omp.h' file not found
      6 | #include <omp.h>
        |          ^~~~~~~
  1 error generated.
  make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:202: mlogit-ex.o] Error 1
  make[1]: Leaving directory '/tmp/RtmpOSHJ9o/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_15748066f112b3'
  using C++ compiler: ‘Debian clang version 18.1.0 (rc4-1)’
  using C++11
  make[1]: Entering directory '/tmp/RtmpOSHJ9o/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_1574801d282f87'
  clang++-18 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include   -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include" -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/psqn/include" -I"/tmp/RtmpOSHJ9o/tmp-psqn-cpp-dir" -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic -Wno-error=enum-constexpr-conversion  -c poly-ex.cpp -o poly-ex.o
  In file included from poly-ex.cpp:11:
  In file included from /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/psqn/include/psqn.h:6:
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/psqn/include/lp.h:12:10: fatal error: 'omp.h' file not found
     12 | #include <omp.h>
        |          ^~~~~~~
  1 error generated.
  make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:202: poly-ex.o] Error 1
  make[1]: Leaving directory '/tmp/RtmpOSHJ9o/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_1574801d282f87'
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 20 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-psqn-generic.R:76:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cpp-api.R:35:3'): mixed logit model gives the same ─────────────
  Error in `Rcpp::sourceCpp(new_name)`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─psqn:::compile_cpp_file("mlogit-ex.cpp") at test-cpp-api.R:35:3
   2.   └─Rcpp::sourceCpp(new_name) at tests/testthat/helper.R:30:3
  ── Error ('test-poly-ex.R:50:5'): Poly example gives the same ──────────────────
  Error in `sourceCpp("poly-ex.cpp")`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─(function() {... at test-poly-ex.R:36:3
   2.   └─Rcpp::sourceCpp("poly-ex.cpp") at test-poly-ex.R:50:5
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 20 ]
  Error: Test failures
  Execution halted