Running ‘testthat.R’ [148s/266s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GPCERF)
  > 
  > test_check("GPCERF")
  2026-01-05 09:46:23.709236 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Loading required package: nnls
  Saving _problems/test-compute_deriv_nn-21.R
  2026-01-05 09:46:34.697957 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_deriv_weights_gp-17.R
  2026-01-05 09:46:42.643006 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_m_sigma-32.R
  2026-01-05 09:46:57.969079 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:47:05.557094 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:47:13.347102 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3922716 on localhost:11855 at 09:47:13.833
  2026-01-05 09:47:21.765285 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 8.41800000000001 s.
  2026-01-05 09:47:21.932159 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:47:30.215089 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:47:38.425941 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-compute_weight_gp-49.R
  2026-01-05 09:47:47.025972 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:47:54.951175 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:04.057666 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:48:08.966644 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:09.012892 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:48:17.531778 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:17.621188 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:17.699775 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:17.797599 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:17.885784 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:17.996089 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:18.048639 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:18.132452 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:48:27.06988 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  starting worker pid=3928157 on localhost:11855 at 09:48:27.903
  starting worker pid=3928159 on localhost:11855 at 09:48:28.020
  2026-01-05 09:48:44.310732 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:48:51.770049 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:48:51.797215 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-05 09:48:51.814903 gannet.stats.ox.ac.uk 3920913 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=3930093 on localhost:11855 at 09:48:52.485
  2026-01-05 09:49:02.01143 gannet.stats.ox.ac.uk 3920913 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 10.189 s.} ... 
  2026-01-05 09:49:02.022075 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3930753 on localhost:11855 at 09:49:02.756
  2026-01-05 09:49:11.746874 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 9.72499999999999 s.
  2026-01-05 09:49:11.7516 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=3931201 on localhost:11855 at 09:49:12.389
  2026-01-05 09:49:19.912603 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 8.16 s.
  2026-01-05 09:49:19.919873 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Done with estimating cerf using nngp approach Wall clock time: 28.123 s.
  2026-01-05 09:49:19.937478 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:49:19.976138 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-05 09:49:20.038899 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:49:20.064098 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-05 09:49:20.267375 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:49:20.293799 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-05 09:49:20.343469 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:49:26.151195 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:49:26.181562 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-05 09:49:26.20961 gannet.stats.ox.ac.uk 3920913 GPCERF log_system_info INFO: System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2026-01-05 r89271), detected cores: 24
  2026-01-05 09:49:26.230101 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_cerf_nngp INFO: Working on estimating cerf using nngp approach ...
  2026-01-05 09:49:26.358172 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  Saving _problems/test-estimate_gps-15.R
  2026-01-05 09:49:36.310678 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:49:43.297617 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3932155 on localhost:11855 at 09:49:43.831
  2026-01-05 09:49:52.963407 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 9.66499999999999 s.
  2026-01-05 09:49:52.967907 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_mean_sd_nn INFO: Working on estimating mean and sd using nngp approach ...
  starting worker pid=3932443 on localhost:11855 at 09:49:53.533
  2026-01-05 09:50:02.254054 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_mean_sd_nn INFO: Done with estimating mean and sd using nngp approach Wall clock time: 9.286 s.
  Saving _problems/test-estimate_mean_sd_nn-37.R
  2026-01-05 09:50:02.362058 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:50:07.716729 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:50:15.84552 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Working on estimating residual error with nngp ...
  starting worker pid=3934311 on localhost:11855 at 09:50:16.452
  2026-01-05 09:50:23.208552 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_noise_nn INFO: Done with estimating residual error with nngpWall clock time: 7.363 s.
  2026-01-05 09:50:23.265082 gannet.stats.ox.ac.uk 3920913 GPCERF estimate_gps INFO: Started estimating GPS values ... 
  2026-01-05 09:50:30.776981 gannet.stats.ox.ac.uk 3920913 GPCERF find_optimal_nn INFO: Started finding optimal values ... 
  starting worker pid=3935002 on localhost:11855 at 09:50:31.266
  2026-01-05 09:50:41.025531 gannet.stats.ox.ac.uk 3920913 GPCERF find_optimal_nn INFO: Done with finding optimal value.(Wall clock time: 10.244 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