Running ‘testthat.R’ [76s/89s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sspm)
  Loading required package: sf
  Linking to GEOS 3.14.0, GDAL 3.11.4, PROJ 9.7.0; sf_use_s2() is TRUE
  Loading required package: mgcv
  Loading required package: nlme
  This is mgcv 1.9-4. For overview type '?mgcv'.
  > 
  > test_check("sspm")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:nlme':
  
      collapse
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  x Method 'method_not_supported' is not part of the supported methods.
  i See `?spm_methods()`
  ! SSPM assumes areas are supplied in km^2
  ! SSPM assumes areas are supplied in km^2
  i  Casting data matrix into simple feature collection using columns: lon_dec, lat_dec
  !  Warning: sspm is assuming WGS 84 CRS is to be used for casting
  i  Casting data matrix into simple feature collection using columns: lon_dec, lat_dec
  !  Warning: sspm is assuming WGS 84 CRS is to be used for casting
  i  Discretizing using method tesselate_voronoi
  i  Discretizing using method tesselate_voronoi
  i  Discretizing using method tesselate_voronoi
  i  Discretizing using method tesselate_voronoi
  i  Discretizing using method tesselate_voronoi
  i  Discretizing using method Custom
  i  Discretizing using method triangulate_delaunay
  i  Discretizing using method triangulate_delaunay
  i  Discretizing using method triangulate_delaunay
  i  Discretizing using method triangulate_delaunay
  x Method 'wrong_method' is not part of the supported methods.
  i See `?spm_methods()`
  i  Fitting formula: weight_per_km2 ~ sfa + smooth_time(by = sfa) + smooth_space() + smooth_space_time(k = c(NA, 30)) for dataset ''
  i  Note:  response variable temp_at_bottom is NOT a biomass density variable
  i  Fitting formula: temp_at_bottom ~ smooth_time(by = sfa) + smooth_space() + smooth_space_time(k = c(NA, 30)) for dataset ''
  x Method 'method_not_supported' is not part of the supported methods.
  i See `?spm_methods()`
  i See `?spm_smooth_methods()`
  i  Joining smoothed data from all datasets
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 179 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-zzzintegration.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-fit.R:15:3'): Fitting works as expected ──────────────────────
  `intercept` (`actual`) not equal to 7.855774 (`expected`).
  
    `actual`: 7.925
  `expected`: 7.856
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 179 ]
  Error: Test failures
  Execution halted