- using R Under development (unstable) (2024-04-21 r86458)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 18.1.0 (rc4-1)
Debian flang-new version 18.1.0 (rc4-1)
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘psqn/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘psqn’ version ‘0.3.1’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘psqn’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 18.1.0 (rc4-1)’
- checking C++ specification ... NOTE
Specified C++11: please drop specification unless essential
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [3s/3s] 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 ... [12s/14s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 compilation flags in Makevars ... 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 use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [9s/11s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [39s/51s] ERROR
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/Rtmpg1C4LQ/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_152f47b87f941'
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/Rtmpg1C4LQ/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/Rtmpg1C4LQ/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_152f47b87f941'
using C++ compiler: ‘Debian clang version 18.1.0 (rc4-1)’
using C++11
make[1]: Entering directory '/tmp/Rtmpg1C4LQ/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_152f46fef2038'
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/Rtmpg1C4LQ/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/Rtmpg1C4LQ/sourceCpp-x86_64-pc-linux-gnu-1.0.12/sourcecpp_152f46fef2038'
[ 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/3s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE