Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GpGp)
  > 
  > test_check("GpGp")
  [ FAIL 15 | WARN 0 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_1d.R:16:5'): we can simulate, fit, predict, condsim in 1d ──────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::fast_Gp_sim(...) at test_1d.R:16:5
   2. │ └─GpGp::find_ordered_nn(locsord, m, lonlat = lonlat, st_scale = st_scale)
   3. │   └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_covfuns.R:120:9'): covariance functions return positive definite matrix ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::get_start_parms(rnorm(n), rep(1, n), locs, covfun_names[j]) at test_covfuns.R:120:9
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_covfuns.R:139:9'): covariance function derivatives match finite differencing ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::get_start_parms(rnorm(n), rep(1, n), locs, covfun_names[j]) at test_covfuns.R:139:9
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_fisher.R:14:5'): Fisher scoring converges quickly ──────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m) at test_fisher.R:14:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_loglik.R:13:5'): likelihood approximations are exact when m = n-1 ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m) at test_loglik.R:13:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_loglik.R:55:5'): gradient of likelihood matches finite differencing ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m) at test_loglik.R:55:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_neighbors.R:13:5'): neighbor array has appropriate structure in 2d ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m) at test_neighbors.R:13:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_neighbors.R:33:5'): neighbor array has appropriate structure on sphere ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m, lonlat = TRUE) at test_neighbors.R:33:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_neighbors.R:55:5'): neighbor array has appropriate structure on sphere-time ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m, lonlat = TRUE) at test_neighbors.R:55:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_neighbors.R:74:5'): neighbor list has appropriate structure in 2d ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m) at test_neighbors.R:74:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_neighbors.R:96:5'): neighbor list has appropriate structure on sphere ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m, lonlat = TRUE) at test_neighbors.R:96:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_neighbors.R:119:5'): neighbor list has appropriate structure on sphere-time ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fields'
  Backtrace:
      ▆
   1. ├─GpGp::find_ordered_nn(locsord, m = m, lonlat = TRUE) at test_neighbors.R:119:5
   2. │ └─GpGp::find_ordered_nn_brute(locs[1:maxval, , drop = FALSE], m)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_ordering.R:11:5'): ordering functions give valid permutation in 2d ──
  Error: fields package required for this function. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_ordering.R:11:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::unique(order_dist_to_point(locs, colMeans(locs)))
   5. └─GpGp::order_dist_to_point(locs, colMeans(locs))
  ── Error ('test_ordering.R:26:5'): ordering functions give valid permutation in 3d ──
  Error: fields package required for this function. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_ordering.R:26:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::unique(order_dist_to_point(locs, colMeans(locs)))
   5. └─GpGp::order_dist_to_point(locs, colMeans(locs))
  ── Error ('test_ordering.R:41:5'): ordering functions give valid permutation on sphere ──
  Error: fields package required for this function. Please install it.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_ordering.R:41:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::unique(order_dist_to_point(locs, colMeans(locs)))
   5. └─GpGp::order_dist_to_point(locs, colMeans(locs))
  
  [ FAIL 15 | WARN 0 | SKIP 0 | PASS 3 ]
  Error: Test failures
  Execution halted