Running ‘testthat.R’ [142s/346s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GPCERF)
  > 
  > test_check("GPCERF")
  2026-01-03 08:34:06.73367 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Loading required package: nnls
  Saving _problems/test-compute_deriv_nn-21.R
  2026-01-03 08:34:20.269132 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_deriv_weights_gp-17.R
  2026-01-03 08:34:30.62967 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_m_sigma-32.R
  2026-01-03 08:34:47.635888 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:34:57.988268 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:35:08.016407 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=1195763 on localhost:11437 at 08:35:08.561
  2026-01-03 08:35:17.350611 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 9.33399999999999 s.
  2026-01-03 08:35:17.547488 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:35:26.491516 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:35:35.733676 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_weight_gp-49.R
  2026-01-03 08:35:46.098705 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:35:55.270946 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:02.375742 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:36:08.468615 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:08.515654 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:36:18.895044 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:18.951343 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:19.008601 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:19.119817 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:19.189037 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:19.246526 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:19.309588 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:36:19.387205 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:36:30.648525 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  starting worker pid=1204902 on localhost:11437 at 08:36:31.437
  starting worker pid=1204903 on localhost:11437 at 08:36:31.474
  2026-01-03 08:36:56.776655 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:37:09.87984 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:37:09.964198 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 08:37:10.011706 gannet.stats.ox.ac.uk 1186943 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=1214291 on localhost:11437 at 08:37:10.686
  2026-01-03 08:37:22.126932 gannet.stats.ox.ac.uk 1186943 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 12.103 s.} ... 
  2026-01-03 08:37:22.135026 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=1215630 on localhost:11437 at 08:37:22.953
  2026-01-03 08:37:34.873498 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 12.739 s.
  2026-01-03 08:37:34.878176 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=1217201 on localhost:11437 at 08:37:35.401
  2026-01-03 08:37:49.107587 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 14.23 s.
  2026-01-03 08:37:49.115177 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Done with estimating cerf using nngp approach Wall clock time: 39.151 s.
  2026-01-03 08:37:49.131002 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:37:49.155499 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 08:37:49.20553 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:37:49.229289 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 08:37:49.339863 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:37:49.363846 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 08:37:49.414392 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:37:56.6043 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:37:56.633393 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 08:37:56.68298 gannet.stats.ox.ac.uk 1186943 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-02 r89267), detected cores: 24
  2026-01-03 08:37:56.71309 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 08:37:56.833935 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-estimate_gps-15.R
  2026-01-03 08:38:07.282704 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:38:18.375271 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=1221451 on localhost:11437 at 08:38:19.028
  2026-01-03 08:38:30.977238 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 12.601 s.
  2026-01-03 08:38:30.981696 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=1223815 on localhost:11437 at 08:38:31.976
  2026-01-03 08:38:44.627997 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 13.646 s.
  Saving _problems/test-estimate_mean_sd_nn-37.R
  2026-01-03 08:38:44.84637 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:38:53.749221 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:39:04.146436 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=1228863 on localhost:11437 at 08:39:04.873
  2026-01-03 08:39:17.105902 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 12.959 s.
  2026-01-03 08:39:17.167503 gannet.stats.ox.ac.uk 1186943 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 08:39:28.738544 gannet.stats.ox.ac.uk 1186943 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=1232048 on localhost:11437 at 08:39:29.330
  2026-01-03 08:39:40.705118 gannet.stats.ox.ac.uk 1186943 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 11.963 s.} ... 
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 101 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-compute_deriv_nn.R:21:3'): compute_deriv_nn works as expected! ──
  Expected `deriv_val[1, 1]` to equal 1.558466.
  Differences:
    `actual`: -1.0
  `expected`:  1.6
  
  ── Failure ('test-compute_deriv_weights_gp.R:17:3'): compute_deriv_weights_gp works as expected! ──
  Expected `weights[37]` to equal 3.307249e-05.
  Differences:
    `actual`: -0.00011
  `expected`:  0.00003
  
  ── Failure ('test-compute_m_sigma.R:32:4'): compute_m_sigma works as expected! ──
  Expected `gp_cerf[10]` to equal 2.105425.
  Differences:
    `actual`: -6.1
  `expected`:  2.1
  
  ── Failure ('test-compute_weight_gp.R:49:3'): multiplication works ─────────────
  Expected `weight$weight[28]` to equal 0.0002182767.
  Differences:
    `actual`: 0.00000
  `expected`: 0.00022
  
  ── Failure ('test-estimate_gps.R:15:3'): estimate_gps works as expected. ───────
  Expected `gps_m$gps[4, 1]` to equal 8.74310154.
  Differences:
    `actual`: 7.3
  `expected`: 8.7
  
  ── Failure ('test-estimate_mean_sd_nn.R:37:3'): estimate_mean_sd_nn works as expected! ──
  Expected `val[10]` to equal 5.031225.
  Differences:
    `actual`: 5.067
  `expected`: 5.031
  
  
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 101 ]
  Error:
  ! Test failures.
  Execution halted