Running ‘spelling.R’
  Running ‘testthat.R’ [50s/114s]
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(geotargets)
  > 
  > test_check("geotargets")
  
  Attaching package: 'targets'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  [ FAIL 19 | WARN 0 | SKIP 6 | PASS 6 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-check-gdal-shz.R:5:3', 'test-check-gdal-sozip.R:5:3',
    'test-check-pkg-installed.R:2:3', 'test-check-user-resources.R:2:3'
  • {gdalraster} cannot be loaded (1): 'test-tar-terra-rast.R:203:3'
  • {stars} cannot be loaded (1): 'test-tar-stars.R:3:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tar-terra-rast.R:13:3'): tar_terra_rast() works ────────────────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-rast.R:13:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-rast.R:38:3'): tar_terra_rast() works with multiple workers (tests un/marshaling) ──
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-rast.R:38:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-rast.R:61:3'): tar_terra_rast() works with dynamic branching ──
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-rast.R:61:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-rast.R:76:3'): user resources are passed correctly ───
  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. ├─testthat::expect_equal(...) at test-tar-terra-rast.R:76:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─geotargets::tar_terra_rast(x, 1)
   5. │ └─geotargets:::get_gdal_available_driver_list("raster")
   6. └─base::loadNamespace(x)
   7.   └─base::library.dynam(lib, package, package.lib)
   8.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-tar-terra-rast.R:126:3'): That changing filetype invalidates a target ──
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    package or namespace load failed for ‘terra’ 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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-rast.R:126:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-rast.R:166:3'): metadata is maintained for GTiff ─────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    package or namespace load failed for ‘terra’ 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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-rast.R:166:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-rast.R:195:3'): metadata is maintained for COG ───────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    package or namespace load failed for ‘terra’ 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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-rast.R:195:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-sprc.R:40:3'): tar_terra_sprc() works ────────────────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-sprc.R:40:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-sprc.R:85:3'): tar_terra_sds() works ─────────────────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-sprc.R:85:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-sprc.R:105:3'): wrapped write function doesn't print warning ──
  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. └─base::loadNamespace(x) at test-tar-terra-sprc.R:105:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-tar-terra-tiles.R:34:3'): tar_terra_tiles() works ──────────────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_manifest():
    package or namespace load failed for ‘terra’ 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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_manifest() at test-tar-terra-tiles.R:34:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-tiles.R:86:3'): recombined tiles are equal to original ──
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    package or namespace load failed for ‘terra’ 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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-tiles.R:86:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-vect.R:22:3'): tar_terra_vect() works ────────────────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-vect.R:22:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-vect.R:51:3'): tar_terra_vect() works with dynamic branching ──
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-vect.R:51:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-vect.R:71:3'): tar_terra_vect() works with multiple workers (tests un/marshaling) ──
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-vect.R:71:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tar-terra-vrt.R:20:3'): tar_terra_vrt() works ──────────────────
  <tar_condition_run/tar_condition_targets/rlang_error/error/condition>
  Error: Error in tar_make():
    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
    See https://books.ropensci.org/targets/debugging.html
  Backtrace:
      ▆
   1. └─targets::tar_make(reporter = "silent") at test-tar-terra-vrt.R:20:3
   2.   └─targets:::callr_outer(...)
   3.     ├─targets:::if_any(...)
   4.     └─targets:::callr_error(traced_condition = out, fun = fun)
   5.       └─targets::tar_throw_run(message, class = class(traced_condition$condition))
   6.         └─targets::tar_error(...)
   7.           └─rlang::abort(message = message, class = class, call = tar_envir_base)
  ── Error ('test-tile-funs.R:3:3'): tile_n fails with non integer ───────────────
  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. └─base::loadNamespace(x) at test-tile-funs.R:3:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-tile-funs.R:17:3'): tile_n gives the appropriate number of outputs ──
  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. └─base::loadNamespace(x) at test-tile-funs.R:17:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test-tile-funs.R:41:3'): tile_grid fails with non integer ───────────
  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. └─base::loadNamespace(x) at test-tile-funs.R:41:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  
  [ FAIL 19 | WARN 0 | SKIP 6 | PASS 6 ]
  Error: Test failures
  Execution halted