R Under development (unstable) (2024-11-01 r87285 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 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. 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. > #' spatstat.utils/tests/segments.R > > require(spatstat.utils) Loading required package: spatstat.utils > > #' test of distppll pointed out by Ang Qi Wei > > p <- matrix(c(1.5, 0), 1, 2) > l <- matrix(c(0,0,1,0,1,0,2,0), 2, 4, byrow=T) > a <- distppll(p, l, mintype=2, method="interpreted") > d <- distppll(p, l, mintype=2, method="C") > if(a$min.which != d$min.which) + stop("conflict between C and interpreted code in distppll") > > #' check consistency between different C routines > b <- distppllmin(p, l) > if(a$min.which != b$min.which) + stop("conflict between distppll and distppllmin") > > proc.time() user system elapsed 0.20 0.06 0.25