* using log directory ‘/home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck’ * using R Under development (unstable) (2025-06-04 r88278) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3) Debian flang-new version 19.1.7 (3) * running under: Debian GNU/Linux 13 (trixie) * using session charset: UTF-8 * checking for file ‘GAPR/DESCRIPTION’ ... OK * this is package ‘GAPR’ version ‘0.1.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 serialization versions ... OK * checking whether package ‘GAPR’ can be installed ... [45s/45s] OK * used C++ compiler: ‘Debian clang version 19.1.7 (3)’ * checking package directory ... OK * checking for future file timestamps ... 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 ... [7s/7s] OK * checking whether the package can be loaded with stated dependencies ... [7s/7s] OK * checking whether the package can be unloaded cleanly ... [7s/7s] OK * checking whether the namespace can be loaded with stated dependencies ... [7s/7s] OK * checking whether the namespace can be unloaded cleanly ... [7s/7s] OK * checking loading without being on the library search path ... [7s/7s] 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 ... [44s/44s] OK * checking Rd files ... [1s/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 pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... [8s/8s] ERROR Running examples in ‘GAPR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: GAP > ### Title: Generalized Association Plots (GAP) > ### Aliases: GAP > > ### ** Examples > > # Example using the crabs dataset from the MASS package > if (requireNamespace("MASS", quietly = TRUE)) { + df_crabs <- MASS::crabs + CRAB_result <- GAP( + data = df_crabs, + YdNum = c(1,2), # First two columns as Y discrete covariates + YcNum = 3, # Third column as Y continuous covariate + row.name = c(1,2,3), # Use First three columns as row names + row.prox = "euclidean", + col.prox = "euclidean", + row.order = "average", + col.order = "average", + row.flip = "r2e", + col.flip = "r2e", + border = TRUE, + border.width = 1, + exp.row_order = TRUE, + exp.column_order = TRUE, + exp.row_names = TRUE, + exp.column_names = TRUE, + exp.Yd_codebook = TRUE, + exp.Yd = TRUE, + exp.Yc = TRUE, + exp.originalmatrix = TRUE, + exp.row_prox = TRUE, + exp.col_prox = TRUE, + PNGfilename = file.path(tempdir(), "output_plot.png"), + show.plot = TRUE + ) + + # Access exported results: + CRAB_result$row_order # Row order after ordering + CRAB_result$column_order # Column order after ordering + CRAB_result$row_names # Row names after ordering + CRAB_result$column_names # Column names after ordering + CRAB_result$Yd_codebook # Codebook for Y discrete covariates + CRAB_result$Yd # Y discrete covariates after ordering + CRAB_result$Yc # Y continuous covariates after ordering + CRAB_result$originalmatrix # Original matrix (after ordering) + CRAB_result$row_prox # Row proximity matrix (after ordering) + CRAB_result$col_prox # Column proximity matrix (after ordering) + + # Evaluate row ordering quality + AR(CRAB_result$row_prox) + GAR(CRAB_result$row_prox, w = 10) + RGAR(CRAB_result$row_prox, w = 10) + + } ================================================================= ==2515220==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x502000016930 in thread T0: object passed to delete has wrong type: size of the allocated type: 4 bytes; size of the deallocated type: 1 bytes. #0 0x55d020b9d5a6 in operator delete(void*, unsigned long) (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x10d5a6) (BuildId: cb572fc433d0ad213d4bcc3b6ed58fac2d1ab683) #1 0x7fed79bd66b3 in List::~List() /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/list.cpp:99:5 #2 0x7fed79bdfe47 in external(int*, int**, int) /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/ordering.cpp:463:3 #3 0x7fed79bdf780 in ordering_external /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/ordering.cpp:431:3 #4 0x7fed79bd144d in hctree_sort /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/hctree_R.cpp:1401:7 #5 0x7fed79bd24ce in hctree_sort_R(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int, int) /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/hctree_R.cpp:1470:5 #6 0x7fed79b9e9c5 in _GAPR_hctree_sort_R /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/RcppExports.cpp:23:34 #7 0x7fed9a3518fc in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:763:11 #8 0x7fed9a3a2342 in do_dotcall /home/hornik/src/R/src/main/dotcode.c:1437:11 #9 0x7fed9a4fa759 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8668:21 #10 0x7fed9a4a8854 in bcEval /home/hornik/src/R/src/main/eval.c:7501:16 #11 0x7fed9a4a6f8f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #12 0x7fed9a4b16e5 in R_execClosure /home/hornik/src/R/src/main/eval.c:2393:22 #13 0x7fed9a4ad1dc in applyClosure_core /home/hornik/src/R/src/main/eval.c:2306:16 #14 0x7fed9a4a790f in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2328:16 #15 0x7fed9a4a790f in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #16 0x7fed9a4c0385 in do_set /home/hornik/src/R/src/main/eval.c:3567:8 #17 0x7fed9a4a735b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #18 0x7fed9a4bc022 in do_begin /home/hornik/src/R/src/main/eval.c:2996:10 #19 0x7fed9a4a735b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #20 0x7fed9a4a735b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #21 0x7fed9a5eb417 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:265:2 #22 0x7fed9a5ee3a0 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #23 0x7fed9a5ee1b4 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1234:5 #24 0x7fed9a5ee49a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1241:5 #25 0x55d020b9edd4 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #26 0x7fed99743ca7 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #27 0x7fed99743d64 in __libc_start_main csu/../csu/libc-start.c:360:3 #28 0x55d020abb370 in _start (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x2b370) (BuildId: cb572fc433d0ad213d4bcc3b6ed58fac2d1ab683) 0x502000016930 is located 0 bytes inside of 4-byte region [0x502000016930,0x502000016934) allocated by thread T0 here: #0 0x55d020b9c921 in operator new(unsigned long) (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x10c921) (BuildId: cb572fc433d0ad213d4bcc3b6ed58fac2d1ab683) #1 0x7fed79bd9510 in getOrderList /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/ordering.cpp:43:14 #2 0x7fed79bdf8f1 in external(int*, int**, int) /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/ordering.cpp:440:8 #3 0x7fed79bdf780 in ordering_external /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/ordering.cpp:431:3 #4 0x7fed79bd144d in hctree_sort /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/hctree_R.cpp:1401:7 #5 0x7fed79bd24ce in hctree_sort_R(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int, int) /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/hctree_R.cpp:1470:5 #6 0x7fed79b9e9c5 in _GAPR_hctree_sort_R /home/hornik/tmp/CRAN_special_clang-san/GAPR.Rcheck/00_pkg_src/GAPR/src/RcppExports.cpp:23:34 #7 0x7fed9a3518fc in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:763:11 #8 0x7fed9a3a2342 in do_dotcall /home/hornik/src/R/src/main/dotcode.c:1437:11 #9 0x7fed9a4fa759 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8668:21 #10 0x7fed9a4a8854 in bcEval /home/hornik/src/R/src/main/eval.c:7501:16 #11 0x7fed9a4a6f8f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #12 0x7fed9a4b16e5 in R_execClosure /home/hornik/src/R/src/main/eval.c:2393:22 #13 0x7fed9a4ad1dc in applyClosure_core /home/hornik/src/R/src/main/eval.c:2306:16 #14 0x7fed9a4a790f in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2328:16 #15 0x7fed9a4a790f in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #16 0x7fed9a4c0385 in do_set /home/hornik/src/R/src/main/eval.c:3567:8 #17 0x7fed9a4a735b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #18 0x7fed9a4bc022 in do_begin /home/hornik/src/R/src/main/eval.c:2996:10 #19 0x7fed9a4a735b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #20 0x7fed9a4a735b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #21 0x7fed9a5eb417 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:265:2 #22 0x7fed9a5ee3a0 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #23 0x7fed9a5ee1b4 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1234:5 #24 0x7fed9a5ee49a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1241:5 #25 0x55d020b9edd4 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #26 0x7fed99743ca7 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 SUMMARY: AddressSanitizer: new-delete-type-mismatch (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x10d5a6) (BuildId: cb572fc433d0ad213d4bcc3b6ed58fac2d1ab683) in operator delete(void*, unsigned long) ==2515220==HINT: if you don't care about these errors you may set ASAN_OPTIONS=new_delete_type_mismatch=0 ==2515220==ABORTING * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR