Running ‘testthat.R’ [81s/120s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GPCERF)
  > 
  > test_check("GPCERF")
  2025-12-26 21:33:55.840385 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Loading required package: nnls
  Saving _problems/test-compute_deriv_nn-21.R
  2025-12-26 21:34:00.052228 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_deriv_weights_gp-17.R
  2025-12-26 21:34:03.902132 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_m_sigma-32.R
  2025-12-26 21:34:10.884909 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:14.564908 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:18.318578 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=352362 on localhost:11272 at 21:34:18.559
  2025-12-26 21:34:21.898304 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 3.58 s.
  2025-12-26 21:34:21.977029 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:25.689109 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:29.421248 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_weight_gp-49.R
  2025-12-26 21:34:33.276237 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:36.881544 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:39.945741 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:42.519772 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:42.572495 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:46.183951 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.20463 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.224972 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.288745 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.307164 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.337418 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.356911 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:34:46.390907 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:34:50.330351 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  starting worker pid=353309 on localhost:11272 at 21:34:50.585
  starting worker pid=353308 on localhost:11272 at 21:34:50.695
  2025-12-26 21:34:59.152366 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:35:02.81662 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:35:02.825443 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-26 21:35:02.829801 gannet.stats.ox.ac.uk 351565 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=353684 on localhost:11272 at 21:35:03.055
  2025-12-26 21:35:06.872823 gannet.stats.ox.ac.uk 351565 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 4.04100000000001 s.} ... 
  2025-12-26 21:35:06.876792 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=354064 on localhost:11272 at 21:35:07.102
  2025-12-26 21:35:10.378599 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 3.50200000000001 s.
  2025-12-26 21:35:10.382573 gannet.stats.ox.ac.uk 351565 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=354193 on localhost:11272 at 21:35:10.607
  2025-12-26 21:35:14.844632 gannet.stats.ox.ac.uk 351565 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 4.462 s.
  2025-12-26 21:35:14.847958 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Done with estimating cerf using nngp approach Wall clock time: 12.022 s.
  2025-12-26 21:35:14.854364 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:35:14.864361 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-26 21:35:14.888284 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:35:14.898342 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-26 21:35:14.948302 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:35:14.957616 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-26 21:35:14.969902 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:35:17.484851 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:35:17.498242 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-26 21:35:17.542117 gannet.stats.ox.ac.uk 351565 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2025-12-26 r89238), detected cores: 24
  2025-12-26 21:35:17.554885 gannet.stats.ox.ac.uk 351565 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2025-12-26 21:35:17.594354 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-estimate_gps-15.R
  2025-12-26 21:35:21.310148 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:35:24.969155 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=354405 on localhost:11272 at 21:35:25.203
  2025-12-26 21:35:28.587647 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 3.61799999999999 s.
  2025-12-26 21:35:28.589926 gannet.stats.ox.ac.uk 351565 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=354464 on localhost:11272 at 21:35:28.817
  2025-12-26 21:35:32.682988 gannet.stats.ox.ac.uk 351565 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 4.093 s.
  Saving _problems/test-estimate_mean_sd_nn-37.R
  2025-12-26 21:35:32.749885 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:35:35.317426 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:35:38.918335 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=354731 on localhost:11272 at 21:35:39.219
  2025-12-26 21:35:42.573676 gannet.stats.ox.ac.uk 351565 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 3.655 s.
  2025-12-26 21:35:42.60984 gannet.stats.ox.ac.uk 351565 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2025-12-26 21:35:46.405771 gannet.stats.ox.ac.uk 351565 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=354905 on localhost:11272 at 21:35:46.642
  2025-12-26 21:35:51.242068 gannet.stats.ox.ac.uk 351565 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 4.833 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