Running ‘testthat.R’ [146s/402s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GPCERF)
  > 
  > test_check("GPCERF")
  2026-01-08 22:39:30.998349 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Loading required package: nnls
  Saving _problems/test-compute_deriv_nn-21.R
  2026-01-08 22:39:45.656449 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_deriv_weights_gp-17.R
  2026-01-08 22:40:01.852319 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_m_sigma-32.R
  2026-01-08 22:40:21.234273 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:40:28.984776 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:40:38.156516 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=2672205 on localhost:11538 at 22:40:38.803
  2026-01-08 22:40:49.472605 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 11.316 s.
  2026-01-08 22:40:49.644656 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:40:59.094515 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:41:10.359439 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_weight_gp-49.R
  2026-01-08 22:41:20.106376 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:41:32.451833 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:41:44.879764 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:41:51.299549 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:41:51.439171 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:42:01.591402 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:01.677539 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:01.772459 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:01.943199 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:02.028103 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:02.113674 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:02.344102 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:02.619447 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:42:11.027693 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  starting worker pid=2681134 on localhost:11538 at 22:42:12.114
  starting worker pid=2681139 on localhost:11538 at 22:42:13.137
  2026-01-08 22:42:47.407496 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:42:58.24701 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:42:58.273742 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-08 22:42:58.291538 gannet.stats.ox.ac.uk 2663146 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=2685305 on localhost:11538 at 22:42:59.281
  2026-01-08 22:43:11.302314 gannet.stats.ox.ac.uk 2663146 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 13.003 s.} ... 
  2026-01-08 22:43:11.307634 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=2686266 on localhost:11538 at 22:43:12.051
  2026-01-08 22:43:26.851436 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 15.544 s.
  2026-01-08 22:43:26.859962 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=2687587 on localhost:11538 at 22:43:27.603
  2026-01-08 22:43:46.131346 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 19.271 s.
  2026-01-08 22:43:46.140441 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Done with estimating cerf using nngp approach Wall clock time: 47.867 s.
  2026-01-08 22:43:46.246974 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:43:46.269138 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-08 22:43:46.323866 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:43:46.350092 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-08 22:43:46.460846 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:43:46.529205 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-08 22:43:46.600512 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:43:54.081097 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:43:54.654818 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-08 22:43:54.682213 gannet.stats.ox.ac.uk 2663146 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-08 r89292), detected cores: 24
  2026-01-08 22:43:54.759469 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-08 22:43:54.90262 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-estimate_gps-15.R
  2026-01-08 22:44:07.275781 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:44:18.096669 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=2692575 on localhost:11538 at 22:44:19.190
  2026-01-08 22:44:33.57265 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 15.476 s.
  2026-01-08 22:44:33.584849 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=2693949 on localhost:11538 at 22:44:34.551
  2026-01-08 22:44:53.517762 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 19.933 s.
  Saving _problems/test-estimate_mean_sd_nn-37.R
  2026-01-08 22:44:54.772832 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:45:07.943978 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:45:16.283155 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=2699042 on localhost:11538 at 22:45:16.973
  2026-01-08 22:45:27.913061 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 11.63 s.
  2026-01-08 22:45:27.98944 gannet.stats.ox.ac.uk 2663146 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-08 22:45:39.165211 gannet.stats.ox.ac.uk 2663146 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=2702052 on localhost:11538 at 22:45:40.347
  2026-01-08 22:45:55.256909 gannet.stats.ox.ac.uk 2663146 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 16.088 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