Running ‘testthat.R’ [148s/245s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GPCERF)
  > 
  > test_check("GPCERF")
  2026-01-03 15:27:26.217686 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Loading required package: nnls
  Saving _problems/test-compute_deriv_nn-21.R
  2026-01-03 15:27:37.233435 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_deriv_weights_gp-17.R
  2026-01-03 15:27:45.803274 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_m_sigma-32.R
  2026-01-03 15:28:00.484319 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:28:07.447698 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:28:14.934367 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3864061 on localhost:11060 at 15:28:15.494
  2026-01-03 15:28:22.061902 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 7.127 s.
  2026-01-03 15:28:22.160975 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:28:29.268226 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:28:36.510428 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_weight_gp-49.R
  2026-01-03 15:28:43.493294 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:28:49.446504 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:28:55.940279 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:29:00.049753 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:00.122388 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:29:08.274826 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:08.761044 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:08.809946 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:08.860422 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:08.910368 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:08.961181 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:09.023705 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:09.108065 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:29:16.716016 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  starting worker pid=3867674 on localhost:11060 at 15:29:17.471
  starting worker pid=3867673 on localhost:11060 at 15:29:17.556
  2026-01-03 15:29:32.11031 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:29:38.624418 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:29:38.645971 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 15:29:38.659348 gannet.stats.ox.ac.uk 3861123 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=3868909 on localhost:11060 at 15:29:39.224
  2026-01-03 15:29:46.920546 gannet.stats.ox.ac.uk 3861123 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 8.25399999999999 s.} ... 
  2026-01-03 15:29:46.925285 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3869148 on localhost:11060 at 15:29:47.538
  2026-01-03 15:29:54.482893 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 7.55700000000002 s.
  2026-01-03 15:29:54.486624 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=3869558 on localhost:11060 at 15:29:55.049
  2026-01-03 15:30:05.57085 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 11.084 s.
  2026-01-03 15:30:05.574751 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Done with estimating cerf using nngp approach Wall clock time: 26.929 s.
  2026-01-03 15:30:05.581727 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:30:05.610089 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 15:30:05.659153 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:30:05.683377 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 15:30:05.79896 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:30:05.82312 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 15:30:05.871694 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:30:11.027084 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:30:11.052073 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 15:30:11.080652 gannet.stats.ox.ac.uk 3861123 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-03 r89269), detected cores: 24
  2026-01-03 15:30:11.094111 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-03 15:30:11.149242 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-estimate_gps-15.R
  2026-01-03 15:30:20.321191 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:30:26.516551 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3872462 on localhost:11060 at 15:30:27.163
  2026-01-03 15:30:34.747612 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 8.23099999999999 s.
  2026-01-03 15:30:34.75912 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=3872993 on localhost:11060 at 15:30:35.357
  2026-01-03 15:30:44.135713 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 9.37700000000001 s.
  Saving _problems/test-estimate_mean_sd_nn-37.R
  2026-01-03 15:30:44.28964 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:30:48.859508 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:30:55.805337 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3874250 on localhost:11060 at 15:30:56.361
  2026-01-03 15:31:03.435 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 7.62900000000002 s.
  2026-01-03 15:31:03.535851 gannet.stats.ox.ac.uk 3861123 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-03 15:31:10.673395 gannet.stats.ox.ac.uk 3861123 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=3874751 on localhost:11060 at 15:31:11.270
  2026-01-03 15:31:20.291658 gannet.stats.ox.ac.uk 3861123 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 9.61500000000001 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