Running ‘testthat.R’ [28s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(shar)
  > 
  > test_check("shar")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 90 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-classify_habitats.R:3:1'): (code run outside of `test_that()`) ──
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-classify_habitats.R:3:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-extract_points.R:3:1'): (code run outside of `test_that()`) ────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(terra::rast(landscape), n = 5, style = "fisher") at test-extract_points.R:3:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-list_to_randomized.R:12:1'): (code run outside of `test_that()`) ──
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-list_to_randomized.R:12:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-pack-unpack.R:3:1'): (code run outside of `test_that()`) ───────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(terra::rast(landscape), n = 5, style = "fisher") at test-pack-unpack.R:3:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-plot_rd_ras.R:3:1'): (code run outside of `test_that()`) ───────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-plot_rd_ras.R:3:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-print.R:17:1'): (code run outside of `test_that()`) ────────────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-print.R:17:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-randomize_raster.R:3:1'): (code run outside of `test_that()`) ──
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-randomize_raster.R:3:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-results_habitat_association.R:11:1'): (code run outside of `test_that()`) ──
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-results_habitat_association.R:11:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-translate_raster.R:7:1'): (code run outside of `test_that()`) ──
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/data/gannet/ripley/R/test-clang/terra/libs/terra.so':
    libhdf5.so.200: cannot open shared object file: No such file or directory
  Backtrace:
      ▆
   1. ├─shar::classify_habitats(...) at test-translate_raster.R:7:1
   2. └─base::loadNamespace(x)
   3.   └─base::library.dynam(lib, package, package.lib)
   4.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 90 ]
  Error: Test failures
  Execution halted