* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/sfdep.Rcheck’ * using R Under development (unstable) (2023-05-19 r84451) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-13 (GCC) 13.1.0 GNU Fortran (GCC) 13.1.0 * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘sfdep/DESCRIPTION’ ... OK * this is package ‘sfdep’ version ‘0.2.3’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘sfdep’ can be installed ... [13s/35s] 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking startup messages can be suppressed ... 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 ... [22s/47s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘sfdep-Ex.R’ failed The error most likely occurred in: > ### Name: as_sf > ### Title: Cast between 'spacetime' and 'sf' classes > ### Aliases: as_sf as_spacetime as_spacetime.sf > > ### ** Examples > > > df_fp <- system.file("extdata", "bos-ecometric.csv", package = "sfdep") > geo_fp <- system.file("extdata", "bos-ecometric.geojson", package = "sfdep") > > # read in data > df <- read.csv( + df_fp, colClasses = c("character", "character", "integer", "double", "Date") + ) > geo <- sf::st_read(geo_fp) Reading layer `bos-ecometric' from data source `/data/gannet/ripley/R/packages/tests-Suggests/sfdep.Rcheck/sfdep/extdata/bos-ecometric.geojson' using driver `GeoJSON' Simple feature collection with 168 features and 1 field Geometry type: POLYGON Dimension: XY Bounding box: xmin: -71.19115 ymin: 42.22788 xmax: -70.99445 ymax: 42.3974 Geodetic CRS: NAD83 > > # Create spacetime object called `bos` > bos <- spacetime(df, geo, + .loc_col = ".region_id", + .time_col = "time_period") > > as_sf(bos) Simple feature collection with 1680 features and 5 fields Geometry type: POLYGON Dimension: XY Bounding box: xmin: -71.19115 ymin: 42.22788 xmax: -70.99445 ymax: 42.3974 Geodetic CRS: NAD83 First 10 features: .region_id ecometric year value time_period geometry 1 25025000100 Guns 2010 0.00 2010-01-01 POLYGON ((-71.1438 42.3548,... 2 25025000100 Guns 2011 1.54 2011-01-01 POLYGON ((-71.1438 42.3548,... 3 25025000100 Guns 2012 1.84 2012-01-01 POLYGON ((-71.1438 42.3548,... 4 25025000100 Guns 2013 4.36 2013-01-01 POLYGON ((-71.1438 42.3548,... 5 25025000100 Guns 2014 1.91 2014-01-01 POLYGON ((-71.1438 42.3548,... 6 25025000100 Guns 2015 1.93 2015-01-01 POLYGON ((-71.1438 42.3548,... 7 25025000100 Guns 2016 1.50 2016-01-01 POLYGON ((-71.1438 42.3548,... 8 25025000100 Guns 2017 2.14 2017-01-01 POLYGON ((-71.1438 42.3548,... 9 25025000100 Guns 2018 2.78 2018-01-01 POLYGON ((-71.1438 42.3548,... 10 25025000100 Guns 2019 1.69 2019-01-01 POLYGON ((-71.1438 42.3548,... > as_spacetime(as_sf(bos) , ".region_id", "year") Error in d(x, !!rlang::sym(.loc_col), !!rlang::sym(attr(x, "sf_column"))) : dplyr required: install that first Calls: as_spacetime -> as_spacetime.sf -> d Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [14s/23s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/gannet/ripley/R/packages/tests-Suggests/sfdep.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 5:08.60, 124.83 + 13.92