Running examples in 'rassta-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: engine
> ### Title: Spatial Modeling Engine
> ### Aliases: engine
> 
> ### ** Examples
> 
> require(terra)
Loading required package: terra
terra version 1.4.7
> p <- system.file("exdat", package = "rassta")
> # Multi-layer SpatRaster of landscape similarities
> fls <- list.files(path = p, pattern = "su_", full.names = TRUE)
> ls <- terra::rast(fls)
> # Numeric code and representative response value for stratification units
> fro <-list.files(path = p, pattern = "repobs.csv", full.names = TRUE)
> ro <- read.csv(fro)
> # Extract only those stratification units with representative value
> ls <- ls[[as.character(ro$SU)]]
> # SpatVector with processing tiles
> fti <- list.files(path = p, pattern = "tiles.shp", full.names = TRUE)
> ti <- terra::vect(fti)
> # Perform spatial modeling of continuous response
> r <- engine(res.type = "cont", ls.rast = ls, n.win = 2, su.repobs = ro,
+             tiles = ti, outdir = p, overwrite = TRUE
+            )
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rassta/exdat/soc_tile1.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rassta/exdat/soc_tile2.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rassta/exdat/soc_tile3.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rassta/exdat/soc_tile4.tif' failed: Read-only file system (GDAL error 4)
Error in { : 
  task 1 failed - "task 1 failed - "[writeRaster] failed writing GTiff file""
Calls: engine -> %ps% -> <Anonymous>
Execution halted
Running examples in ‘rassta-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: engine
> ### Title: Spatial Modeling Engine
> ### Aliases: engine
> 
> ### ** Examples
> 
> require(terra)
Loading required package: terra
terra version 1.4.9
> p <- system.file("exdat", package = "rassta")
> # Multi-layer SpatRaster of landscape similarities
> fls <- list.files(path = p, pattern = "su_", full.names = TRUE)
> ls <- terra::rast(fls)
> # Numeric code and representative response value for stratification units
> fro <-list.files(path = p, pattern = "repobs.csv", full.names = TRUE)
> ro <- read.csv(fro)
> # Extract only those stratification units with representative value
> ls <- ls[[as.character(ro$SU)]]
> # SpatVector with processing tiles
> fti <- list.files(path = p, pattern = "tiles.shp", full.names = TRUE)
> ti <- terra::vect(fti)
> # Perform spatial modeling of continuous response
> r <- engine(res.type = "cont", ls.rast = ls, n.win = 2, su.repobs = ro,
+             tiles = ti, outdir = p, overwrite = TRUE
+            )
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rassta/exdat/soc_tile1.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rassta/exdat/soc_tile2.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rassta/exdat/soc_tile3.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rassta/exdat/soc_tile4.tif' failed: Read-only file system (GDAL error 4)
Error in { : 
  task 1 failed - "task 1 failed - "[writeRaster] failed writing GTiff file""
Calls: engine -> %ps% -> <Anonymous>
Execution halted
Undeclared package ‘htmlwidgets’ in Rd xrefs
Running examples in ‘rassta-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: engine
> ### Title: Spatial Modeling Engine
> ### Aliases: engine
> 
> ### ** Examples
> 
> require(terra)
Loading required package: terra
terra version 1.4.7
> p <- system.file("exdat", package = "rassta")
> # Multi-layer SpatRaster of landscape similarities
> fls <- list.files(path = p, pattern = "su_", full.names = TRUE)
> ls <- terra::rast(fls)
> # Numeric code and representative response value for stratification units
> fro <-list.files(path = p, pattern = "repobs.csv", full.names = TRUE)
> ro <- read.csv(fro)
> # Extract only those stratification units with representative value
> ls <- ls[[as.character(ro$SU)]]
> # SpatVector with processing tiles
> fti <- list.files(path = p, pattern = "tiles.shp", full.names = TRUE)
> ti <- terra::vect(fti)
> # Perform spatial modeling of continuous response
> r <- engine(res.type = "cont", ls.rast = ls, n.win = 2, su.repobs = ro,
+             tiles = ti, outdir = p, overwrite = TRUE
+            )
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rassta/exdat/soc_tile1.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rassta/exdat/soc_tile2.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rassta/exdat/soc_tile3.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rassta/exdat/soc_tile4.tif' failed: Read-only file system (GDAL error 4)
Error in { : 
  task 1 failed - "task 1 failed - "[writeRaster] failed writing GTiff file""
Calls: engine -> %ps% -> <Anonymous>
Execution halted
Running examples in ‘rassta-Ex.R’ failed
The error most likely occurred in:

> ### Name: locations
> ### Title: Select Representative Sampling Locations for Stratification
> ###   Units
> ### Aliases: locations
> 
> ### ** Examples
> 
> require(terra)
Loading required package: terra
terra version 1.4.9
> p <- system.file("exdat", package = "rassta")
> # Multi-layer SpatRaster of landscape similarities
> fls <- list.files(path = p, pattern = "su_", full.names = TRUE)
> ls <- terra::rast(fls)
> # Single-layer SpatRaster of stratification units
> fsu <- list.files(path = p, pattern = "strata.tif", full.names = TRUE)
> su <- terra::rast(fsu)
> # Get 1 representative sampling location per stratification unit
> rl <- locations(ls.rast = ls, su.rast = su)
Error in { : task 1 failed - "[expanse] input crs is not valid"
Calls: locations -> %ps% -> <Anonymous>
Execution halted
Running ‘tinytest.R’ [14s/19s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > 
  > if ( requireNamespace("tinytest", quietly=TRUE) ){
  +   tinytest::test_package("rassta")
  + }
  
  Attaching package: 'rassta'
  
  The following object is masked from 'package:methods':
  
      signature
  
  
  test_dummies.R................    0 tests    
  test_dummies.R................    0 tests    
  test_dummies.R................    0 tests    
  test_dummies.R................    0 tests    
  test_dummies.R................    1 tests [0;32mOK[0m 
  test_dummies.R................    2 tests [0;32mOK[0m [0;34m12.3s[0m
  
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    
  test_locations.R..............    0 tests    Error in { : task 1 failed - "[expanse] input crs is not valid"
  Calls: <Anonymous> ... FUN -> eval -> eval -> locations -> %ps% -> <Anonymous>
  Execution halted
Running examples in ‘rassta-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: engine
> ### Title: Spatial Modeling Engine
> ### Aliases: engine
> 
> ### ** Examples
> 
> require(terra)
Loading required package: terra
terra version 1.4.7
> p <- system.file("exdat", package = "rassta")
> # Multi-layer SpatRaster of landscape similarities
> fls <- list.files(path = p, pattern = "su_", full.names = TRUE)
> ls <- terra::rast(fls)
> # Numeric code and representative response value for stratification units
> fro <-list.files(path = p, pattern = "repobs.csv", full.names = TRUE)
> ro <- read.csv(fro)
> # Extract only those stratification units with representative value
> ls <- ls[[as.character(ro$SU)]]
> # SpatVector with processing tiles
> fti <- list.files(path = p, pattern = "tiles.shp", full.names = TRUE)
> ti <- terra::vect(fti)
> # Perform spatial modeling of continuous response
> r <- engine(res.type = "cont", ls.rast = ls, n.win = 2, su.repobs = ro,
+             tiles = ti, outdir = p, overwrite = TRUE
+            )
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/rassta/exdat/soc_tile1.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/rassta/exdat/soc_tile2.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/rassta/exdat/soc_tile3.tif' failed: Read-only file system (GDAL error 4)
Warning: Attempt to create new tiff file `/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/rassta/exdat/soc_tile4.tif' failed: Read-only file system (GDAL error 4)
Error in { : 
  task 1 failed - "task 1 failed - "[writeRaster] failed writing GTiff file""
Calls: engine -> %ps% -> <Anonymous>
Execution halted
Packages required and available but unsuitable versions:
  'grDevices', 'stats', 'utils'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Packages required and available but unsuitable versions:
  'grDevices', 'stats', 'utils'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.