Running examples in ‘sftime-Ex.R’ failed
The error most likely occurred in:

> ### 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
> 
> ### ** 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 class: '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 class: '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"))
trying to read file: /Volumes/Builds/packages/big-sur-arm64/Rlib/4.2/stars/nc/bcsd_obs_1999.nc
Error in CPL_read_gdal(as.character(x), as.character(options), as.character(driver),  : 
  file not found
Calls: <Anonymous> ... is_big -> read_stars -> <Anonymous> -> CPL_read_gdal
Execution halted