Running ‘testthat.R’ [106s/260s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(shar)
  > library(spatstat)
  Loading required package: spatstat.data
  Loading required package: spatstat.geom
  spatstat.geom 1.65-5
  Loading required package: spatstat.core
  Loading required package: nlme
  
  Attaching package: 'nlme'
  
  The following object is masked from 'package:dplyr':
  
      collapse
  
  Loading required package: rpart
  spatstat.core 1.65-5
  Loading required package: spatstat.linnet
  
  spatstat 2.0-1       (nickname: 'Caution: contains small parts') 
  For an introduction to spatstat, type 'beginner' 
  
  > library(testthat)
  
  Attaching package: 'testthat'
  
  The following object is masked from 'package:dplyr':
  
      matches
  
  > 
  > test_check("shar")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-calculate_energy.R:3:1): (code run outside of `test_that()`) ────
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::fit_point_process(...) test-calculate_energy.R:3:0
  ── Error (test-estimate_pcf_fast.R:7:3): estimate_pcf returns spatstat.fv object ──
  Error: 'Kest' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::estimate_pcf_fast(pattern = shar::species_b) test-estimate_pcf_fast.R:7:2
   2.   └─base::suppressMessages(spatstat::Kest(X = pattern, ...))
   3.     └─base::withCallingHandlers(...)
  ── Error (test-extract_points.R:5:1): (code run outside of `test_that()`) ──────
  Error: 'coords' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::extract_points(raster = landscape_classified, pattern = shar::species_b) test-extract_points.R:5:0
  ── Error (test-fit-point_process.R:4:1): (code run outside of `test_that()`) ───
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::fit_point_process(...) test-fit-point_process.R:4:0
  ── Error (test-plot_energy.R:3:1): (code run outside of `test_that()`) ─────────
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::reconstruct_pattern_homo(...) test-plot_energy.R:3:0
  ── Error (test-plot_randomized_pattern.R:3:1): (code run outside of `test_that()`) ──
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::fit_point_process(shar::species_a, n_random = 3, verbose = FALSE) test-plot_randomized_pattern.R:3:0
  ── Error (test-print.R:3:1): (code run outside of `test_that()`) ───────────────
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::reconstruct_pattern_homo(...) test-print.R:3:0
  ── Error (test-reconstruct_pattern_cluster.R:4:1): (code run outside of `test_that()`) ──
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::reconstruct_pattern_cluster(...) test-reconstruct_pattern_cluster.R:4:0
  ── Error (test-reconstruct_pattern_hetero.R:3:1): (code run outside of `test_that()`) ──
  Error: 'rpoispp' is not an exported object from 'namespace:spatstat'
  ── Error (test-reconstruct_pattern_homo.R:4:1): (code run outside of `test_that()`) ──
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::reconstruct_pattern_homo(...) test-reconstruct_pattern_homo.R:4:0
  ── Error (test-reconstruct_pattern_marks.R:3:1): (code run outside of `test_that()`) ──
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::reconstruct_pattern_homo(...) test-reconstruct_pattern_marks.R:3:0
  ── Error (test-results_habitat_association.R:5:1): (code run outside of `test_that()`) ──
  Error: 'is.marked' is not an exported object from 'namespace:spatstat'
  Backtrace:
      █
   1. └─shar::fit_point_process(...) test-results_habitat_association.R:5:0
  
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted