* using log directory 'd:/Rcompile/CRANpkg/local/4.6/spatsoc.Rcheck' * using R version 4.6.0 RC (2026-04-22 r89945 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-04-23 11:23:52 UTC * checking for file 'spatsoc/DESCRIPTION' ... OK * this is package 'spatsoc' version '0.2.2' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'spatsoc' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking whether startup messages can be suppressed ... [0s] 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 ... [4s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] ERROR Running examples in 'spatsoc-Ex.R' failed The error most likely occurred in: > ### Name: group_lines > ### Title: Group Lines > ### Aliases: group_lines > > ### ** Examples > > # Load data.table > library(data.table) Attaching package: 'data.table' The following object is masked from 'package:base': %notin% > ## Don't show: > data.table::setDTthreads(1) > ## End(Don't show) > > # Read example data > DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) > > # Subset only individuals A, B, and C > DT <- DT[ID %in% c('A', 'B', 'C')] > > # Cast the character column to POSIXct > DT[, datetime := as.POSIXct(datetime, tz = 'UTC')] > > # EPSG code for example data > utm <- 32736 > > group_lines(DT, threshold = 50, projection = utm, sortBy = 'datetime', + id = 'ID', coords = c('X', 'Y')) ID X Y datetime population group 1: A 715851.4 5505340 2016-11-01 00:00:54 1 1 2: A 715822.8 5505289 2016-11-01 02:01:22 1 1 3: A 715872.9 5505252 2016-11-01 04:01:24 1 1 4: A 715820.5 5505231 2016-11-01 06:01:05 1 1 5: A 715830.6 5505227 2016-11-01 08:01:11 1 1 --- 4265: C 702093.6 5510180 2017-02-28 14:00:44 1 1 4266: C 702086.0 5510183 2017-02-28 16:00:42 1 1 4267: C 702961.8 5509447 2017-02-28 18:00:53 1 1 4268: C 703130.4 5509528 2017-02-28 20:00:54 1 1 4269: C 702872.3 5508531 2017-02-28 22:00:18 1 1 > > ## Daily movement tracks > # Temporal grouping > group_times(DT, datetime = 'datetime', threshold = '1 day') ID X Y datetime population group timegroup 1: A 715851.4 5505340 2016-11-01 00:00:54 1 1 1 2: A 715822.8 5505289 2016-11-01 02:01:22 1 1 1 3: A 715872.9 5505252 2016-11-01 04:01:24 1 1 1 4: A 715820.5 5505231 2016-11-01 06:01:05 1 1 1 5: A 715830.6 5505227 2016-11-01 08:01:11 1 1 1 --- 4265: C 702093.6 5510180 2017-02-28 14:00:44 1 1 120 4266: C 702086.0 5510183 2017-02-28 16:00:42 1 1 120 4267: C 702961.8 5509447 2017-02-28 18:00:53 1 1 120 4268: C 703130.4 5509528 2017-02-28 20:00:54 1 1 120 4269: C 702872.3 5508531 2017-02-28 22:00:18 1 1 120 > > # Subset only first 50 days > DT <- DT[timegroup < 25] > > # Spatial grouping > group_lines(DT, threshold = 50, projection = utm, + id = 'ID', coords = c('X', 'Y'), + timegroup = 'timegroup', sortBy = 'datetime') group column will be overwritten by this function * checking for unstated dependencies in 'tests' ... OK * checking tests ... [32s] OK Running 'testthat.R' [32s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [25s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR