R Under development (unstable) (2023-07-19 r84711 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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. > #' > #' Header for all (concatenated) test files > #' > #' Require spatstat.geom > #' Obtain environment variable controlling tests. > #' > #' $Revision: 1.5 $ $Date: 2020/04/30 05:31:37 $ > > require(spatstat.geom) Loading required package: spatstat.geom Loading required package: spatstat.data spatstat.geom 3.2-4 > FULLTEST <- (nchar(Sys.getenv("SPATSTAT_TEST", unset="")) > 0) > ALWAYS <- TRUE > cat(paste("--------- Executing", + if(FULLTEST) "** ALL **" else "**RESTRICTED** subset of", + "test code -----------\n")) --------- Executing **RESTRICTED** subset of test code ----------- > #' tests/morpho.R > #' > #' morphology code blocks > #' > #' $Revision: 1.3 $ $Date: 2020/04/30 02:18:23 $ > > local({ + if(ALWAYS) { # depends on C code etc + #' owin + a <- erosion(letterR, 0.1, polygonal=FALSE) + b <- dilation(letterR, 0.1, polygonal=FALSE) + at <- erosion(letterR, 0.1, polygonal=FALSE, strict=TRUE) + bt <- dilation(letterR, 0.1, polygonal=FALSE, tight=FALSE) + #' psp + S <- edges(letterR) + dm <- dilation(S, 0.1, polygonal=FALSE) + dt <- dilation(S, 0.1, polygonal=FALSE, tight=FALSE) + op <- spatstat.options(old.morpho.psp=TRUE) + dn <- dilation(S, 0.1, polygonal=TRUE) + spatstat.options(op) + cS <- closing(S, 0.1, polygonal=FALSE) + eS <- erosion(S, 0) + oS <- opening(S, 0) + #' ppp + dc <- dilation(cells, 0.06, polygonal=FALSE) + ec <- erosion(cells, 0) + oc <- opening(cells, 0) + #' + reset.spatstat.options() + } + }) > > > proc.time() user system elapsed 1.04 0.18 1.21