Running 'testthat.R' [36s/45s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(psqn)
  Loading required package: Matrix
  > 
  > test_check("psqn")
  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
  #include <omp.h>
           ^~~~~~~
  1 error generated.
  make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:183: mlogit-ex.o] Error 1
  make[1]: Entering directory '/tmp/RtmpYJUquj/sourceCpp-x86_64-pc-linux-gnu-1.0.9/sourcecpp_2983ca6c811a4b'
  clang++-15 -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/RtmpYJUquj/tmp-psqn-cpp-dir" -I/usr/local/include -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -g -O3 -Wall -pedantic -c mlogit-ex.cpp -o mlogit-ex.o
  make[1]: Leaving directory '/tmp/RtmpYJUquj/sourceCpp-x86_64-pc-linux-gnu-1.0.9/sourcecpp_2983ca6c811a4b'
  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
  #include <omp.h>
           ^~~~~~~
  1 error generated.
  make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:183: poly-ex.o] Error 1
  make[1]: Entering directory '/tmp/RtmpYJUquj/sourceCpp-x86_64-pc-linux-gnu-1.0.9/sourcecpp_2983ca4e03459a'
  clang++-15 -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/RtmpYJUquj/tmp-psqn-cpp-dir" -I/usr/local/include -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -g -O3 -Wall -pedantic -c poly-ex.cpp -o poly-ex.o
  make[1]: Leaving directory '/tmp/RtmpYJUquj/sourceCpp-x86_64-pc-linux-gnu-1.0.9/sourcecpp_2983ca4e03459a'
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 20 ]
  
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error ('test-cpp-api.R:35'): mixed logit model gives the same ---------------
  Error in `Rcpp::sourceCpp(new_name)`: Error 1 occurred building shared library.
  Backtrace:
      x
   1. \-psqn:::compile_cpp_file("mlogit-ex.cpp") at test-cpp-api.R:35:2
   2.   \-Rcpp::sourceCpp(new_name) at tests/testthat/helper.R:30:2
  -- Error ('test-poly-ex.R:36'): Poly example gives the same --------------------
  Error in `sourceCpp("poly-ex.cpp")`: Error 1 occurred building shared library.
  Backtrace:
      x
   1. \-(function() {... at test-poly-ex.R:36:2
   2.   \-Rcpp::sourceCpp("poly-ex.cpp") at test-poly-ex.R:50:4
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 20 ]
  Error: Test failures
  Execution halted