R Under development (unstable) (2026-09-29 r90594) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "deadwood" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('deadwood') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("deadwood") > ### * deadwood > > flush(stderr()); flush(stdout()) > > ### Name: deadwood > ### Title: Deadwood: Outlier Detection via Pruning Mutual Reachability > ### Minimum Spanning Trees > ### Aliases: deadwood deadwood.default deadwood.dist deadwood.mstclust > ### deadwood.mst > > ### ** Examples > > library("datasets") > data("iris") > X <- jitter(as.matrix(iris[1:2])) # some data > is_outlier <- deadwood(X, M=5) OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). c_deadwood.h:260:21: runtime error: load of value 116, which is not a valid value for type 'bool' #0 0x7fb8c661a57b in CDeadwood::process() /data/localhost/ripley/R/packages/tests-clang-UBSAN/deadwood/src/./c_deadwood.h:260:21 #1 0x7fb8c66124fc in long Cdeadwood(double const*, long const*, long, long, double, double, long, long, long, double, long*, double*, long*, long const*, long const*) /data/localhost/ripley/R/packages/tests-clang-UBSAN/deadwood/src/./c_deadwood.h:420:24 #2 0x7fb8c660f042 in dot_deadwood(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, int, double, double, double, int, bool) /data/localhost/ripley/R/packages/tests-clang-UBSAN/deadwood/src/RcppDeadwood.cpp:106:21 #3 0x7fb8c664c6e0 in _deadwood_dot_deadwood /data/localhost/ripley/R/packages/tests-clang-UBSAN/deadwood/src/RcppExports.cpp:40:34 #4 0x55845c854b1b in R_doDotCall (/data/localhost/ripley/R/R-clang/bin/exec/R+0x91b1b) #5 0x55845c89f1da in bcEval_loop eval.c #6 0x55845c88d5eb in bcEval eval.c #7 0x55845c88cda4 in Rf_eval (/data/localhost/ripley/R/R-clang/bin/exec/R+0xc9da4) #8 0x55845c8a4e78 in R_execClosure eval.c #9 0x55845c8a436a in applyClosure_core eval.c #10 0x55845c88dcb6 in Rf_applyClosure (/data/localhost/ripley/R/R-clang/bin/exec/R+0xcacb6) #11 0x55845c8f14a1 in dispatchMethod objects.c #12 0x55845c8f0e76 in Rf_usemethod (/data/localhost/ripley/R/R-clang/bin/exec/R+0x12de76) #13 0x55845c8f19fe in do_usemethod (/data/localhost/ripley/R/R-clang/bin/exec/R+0x12e9fe) #14 0x55845c8941a5 in bcEval_loop eval.c #15 0x55845c88d5eb in bcEval eval.c #16 0x55845c88cda4 in Rf_eval (/data/localhost/ripley/R/R-clang/bin/exec/R+0xc9da4) #17 0x55845c8a4e78 in R_execClosure eval.c #18 0x55845c8a436a in applyClosure_core eval.c #19 0x55845c88dcb6 in Rf_applyClosure (/data/localhost/ripley/R/R-clang/bin/exec/R+0xcacb6) #20 0x55845c88d1f7 in Rf_eval (/data/localhost/ripley/R/R-clang/bin/exec/R+0xca1f7) #21 0x55845c8aa1c7 in do_set (/data/localhost/ripley/R/R-clang/bin/exec/R+0xe71c7) #22 0x55845c88cfcf in Rf_eval (/data/localhost/ripley/R/R-clang/bin/exec/R+0xc9fcf) #23 0x55845c8da347 in Rf_ReplIteration (/data/localhost/ripley/R/R-clang/bin/exec/R+0x117347) #24 0x55845c8dbe3e in run_Rmainloop (/data/localhost/ripley/R/R-clang/bin/exec/R+0x118e3e) #25 0x55845c8dbeaa in Rf_mainloop (/data/localhost/ripley/R/R-clang/bin/exec/R+0x118eaa) #26 0x55845c7c4db7 in main (/data/localhost/ripley/R/R-clang/bin/exec/R+0x1db7) #27 0x7fb8ce10b680 in __libc_start_call_main (/lib64/libc.so.6+0x3680) (BuildId: 5bd941be836f538fe5e10eff508f7f5dd94905a6) #28 0x7fb8ce10b797 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3797) (BuildId: 5bd941be836f538fe5e10eff508f7f5dd94905a6) #29 0x55845c7c4cd4 in _start (/data/localhost/ripley/R/R-clang/bin/exec/R+0x1cd4) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior c_deadwood.h:260:21 > plot(X, col=c("#ff000066", "#55555555")[is_outlier+1], + pch=c(16, 1)[is_outlier+1], asp=1, las=1) > > > > > cleanEx() > nameEx("mst") > ### * mst > > flush(stderr()); flush(stdout()) > > ### Name: mst > ### Title: Euclidean and Mutual Reachability Minimum Spanning Trees > ### Aliases: mst mst.default mst.dist > > ### ** Examples > > library("datasets") > data("iris") > X <- jitter(as.matrix(iris[1:2])) # some data > T <- mst(X) > plot(X, asp=1, las=1) > segments(X[T[, 1], 1], X[T[, 1], 2], + X[T[, 2], 1], X[T[, 2], 2]) > > > > > ### *