Running ‘testthat.R’ [146s/479s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GPCERF)
  > 
  > test_check("GPCERF")
  2025-12-21 17:14:03.923455 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Loading required package: nnls
  Saving _problems/test-compute_deriv_nn-21.R
  2025-12-21 17:14:20.375395 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_deriv_weights_gp-17.R
  2025-12-21 17:14:38.571093 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_m_sigma-32.R
  2025-12-21 17:15:01.8909 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:15:18.311083 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:15:32.989228 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3999837 on localhost:11521 at 17:15:34.241
  2025-12-21 17:15:44.512754 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 11.523 s.
  2025-12-21 17:15:44.703194 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:15:53.88295 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:16:06.317196 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_weight_gp-49.R
  2025-12-21 17:16:19.891044 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:16:30.486801 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:16:43.122546 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:16:53.05197 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:16:53.132591 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:17:09.849059 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:09.904713 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:09.960141 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:10.015242 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:10.084562 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:10.150124 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:10.22412 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:17:10.324969 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:17:27.057343 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  starting worker pid=4014920 on localhost:11521 at 17:17:28.092
  starting worker pid=4014919 on localhost:11521 at 17:17:28.297
  2025-12-21 17:17:59.84917 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:18:18.806262 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:18:19.26263 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-21 17:18:19.271837 gannet.stats.ox.ac.uk 3986278 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=4019974 on localhost:11521 at 17:18:20.777
  2025-12-21 17:18:37.610634 gannet.stats.ox.ac.uk 3986278 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 18.335 s.} ... 
  2025-12-21 17:18:37.621314 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=4021432 on localhost:11521 at 17:18:39.435
  2025-12-21 17:18:54.511929 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 16.89 s.
  2025-12-21 17:18:54.520722 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=4023001 on localhost:11521 at 17:18:55.353
  2025-12-21 17:19:12.730582 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 18.21 s.
  2025-12-21 17:19:12.738789 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Done with estimating cerf using nngp approach Wall clock time: 53.476 s.
  2025-12-21 17:19:12.761729 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:19:12.804733 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-21 17:19:12.887784 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:19:12.920211 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-21 17:19:13.093878 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:19:13.334097 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-21 17:19:14.011354 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:19:23.545686 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:19:23.613 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-21 17:19:23.669314 gannet.stats.ox.ac.uk 3986278 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-21 r89216), detected cores: 24
  2025-12-21 17:19:23.70406 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-21 17:19:23.838045 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-estimate_gps-15.R
  2025-12-21 17:19:36.364128 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:19:51.67213 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=4028861 on localhost:11521 at 17:19:52.688
  2025-12-21 17:20:09.452617 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 17.78 s.
  2025-12-21 17:20:09.46382 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=4030898 on localhost:11521 at 17:20:10.040
  2025-12-21 17:20:24.238665 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 14.775 s.
  Saving _problems/test-estimate_mean_sd_nn-37.R
  2025-12-21 17:20:24.413669 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:20:35.795772 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:20:50.365597 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=4035673 on localhost:11521 at 17:20:51.166
  2025-12-21 17:21:05.243493 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 14.878 s.
  2025-12-21 17:21:05.412154 gannet.stats.ox.ac.uk 3986278 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-21 17:21:22.098838 gannet.stats.ox.ac.uk 3986278 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=4039037 on localhost:11521 at 17:21:22.972
  2025-12-21 17:21:42.425644 gannet.stats.ox.ac.uk 3986278 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 20.319 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