CRAN Package Check Results for Package sftime

Last updated on 2025-01-30 20:48:39 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.0 4.09 64.40 68.49 OK
r-devel-linux-x86_64-debian-gcc 0.3.0 3.35 43.83 47.18 ERROR
r-devel-linux-x86_64-fedora-clang 0.3.0 109.11 OK
r-devel-linux-x86_64-fedora-gcc 0.3.0 124.42 OK
r-devel-windows-x86_64 0.3.0 6.00 82.00 88.00 OK
r-patched-linux-x86_64 0.3.0 5.09 61.12 66.21 OK
r-release-linux-x86_64 0.3.0 3.75 61.12 64.87 OK
r-release-macos-arm64 0.3.0 39.00 OK
r-release-macos-x86_64 0.3.0 74.00 OK
r-release-windows-x86_64 0.3.0 7.00 79.00 86.00 OK
r-oldrel-macos-arm64 0.3.0 44.00 OK
r-oldrel-macos-x86_64 0.3.0 81.00 OK
r-oldrel-windows-x86_64 0.3.0 7.00 97.00 104.00 OK

Check Details

Version: 0.3.0
Check: examples
Result: ERROR Running examples in ‘sftime-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: st_as_sftime > ### Title: Convert a foreign object to an 'sftime' object > ### Aliases: st_as_sftime st_as_sftime.ST st_as_sftime.Track > ### st_as_sftime.Tracks st_as_sftime.TracksCollection st_as_sftime.sftime > ### st_as_sftime.sf st_as_sftime.stars st_as_sftime.data.frame > ### st_as_sftime.ppp st_as_sftime.psp st_as_sftime.lpp > ### st_as_sftime.sftrack st_as_sftime.sftraj st_as_sftime.cubble_df > > ### ** Examples > > # modified from spacetime: > library(sp) > library(spacetime) > > sp <- cbind(x = c(0,0,1), y = c(0,1,1)) > row.names(sp) <- paste("point", 1:nrow(sp), sep="") > sp <- SpatialPoints(sp) > time <- as.POSIXct("2010-08-05") + 3600 * (10:12) > x <- STI(sp, time) > > st_as_sftime(x) Spatiotemporal feature collection with 3 features and 0 fields Geometry type: POINT Dimension: XY Bounding box: xmin: 0 ymin: 0 xmax: 1 ymax: 1 CRS: NA Time column with classes: 'POSIXct', 'POSIXt'. Ranging from 2010-08-05 10:00:00 to 2010-08-05 12:00:00. st_as_sfc.x.sp. time 1 POINT (0 0) 2010-08-05 10:00:00 2 POINT (0 1) 2010-08-05 11:00:00 3 POINT (1 1) 2010-08-05 12:00:00 > > # convert a Track object from package trajectories to an sftime object > library(trajectories) > x1_Track <- trajectories::rTrack(n = 100) > x1_Track@data$speed <- sort(rnorm(length(x1_Track))) > x1_sftime <- st_as_sftime(x1_Track) > > # convert a Tracks object from package trajectories to an sftime object > x2_Tracks <- trajectories::rTracks(m = 6) > x2_sftime <- st_as_sftime(x2_Tracks) > > # convert a TracksCollection object from package trajectories to an sftime object > x3_TracksCollection <- trajectories::rTracksCollection(p = 2, m = 3, n = 50) > x3_sftime <- st_as_sftime(x3_TracksCollection) > > # convert an sftime object to an sftime object > st_as_sftime(x3_sftime) Spatiotemporal feature collection with 300 features and 3 fields Geometry type: POINT Dimension: XY Bounding box: xmin: -28.35517 ymin: -24.66491 xmax: 38.77599 ymax: 52.90631 CRS: NA Time column with classes: 'POSIXct', 'POSIXt'. Ranging from 1970-01-01 to 1970-01-01 04:49:00. First 10 features: ones tracks_name track_name st_as_sfc.x.sp. 1 1 Tracks1 Track1 POINT (-1.539007 1.932557) 2 1 Tracks1 Track1 POINT (-0.2003776 -0.1679942) 3 1 Tracks1 Track1 POINT (-2.752113 3.166629) 4 1 Tracks1 Track1 POINT (-0.2337229 -0.3806908) 5 1 Tracks1 Track1 POINT (-3.585336 3.267737) 6 1 Tracks1 Track1 POINT (-0.2504837 0.3498938) 7 1 Tracks1 Track1 POINT (-2.653028 1.426368) 8 1 Tracks1 Track1 POINT (0.6410695 -0.5117434) 9 1 Tracks1 Track1 POINT (-2.018482 1.572974) 10 1 Tracks1 Track1 POINT (1.737529 -1.27253) time 1 1970-01-01 00:00:00 2 1970-01-01 00:00:00 3 1970-01-01 00:01:00 4 1970-01-01 00:01:00 5 1970-01-01 00:02:00 6 1970-01-01 00:02:00 7 1970-01-01 00:03:00 8 1970-01-01 00:03:00 9 1970-01-01 00:04:00 10 1970-01-01 00:04:00 > > # convert an sf object to an sftime object > g <- st_sfc(st_point(c(1, 2)), st_point(c(1, 3)), st_point(c(2, 3)), + st_point(c(2, 1)), st_point(c(3, 1))) > x4_sf <- st_sf(a = 1:5, g, time = Sys.time() + 1:5) > x4_sftime <- st_as_sftime(x4_sf) > > # convert a Tracks object from package trajectories to an sftime object > x5_stars <- stars::read_stars(system.file("nc/bcsd_obs_1999.nc", package = "stars")) pr, Error in `/.difftime`(diff(range(ud)), mean(ud)) : second argument of / cannot be a "difftime" object Calls: <Anonymous> ... create_dimension -> regular_intervals -> isTRUE -> /.difftime Execution halted Flavor: r-devel-linux-x86_64-debian-gcc