Running ‘testthat.R’ [146s/241s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-05-04 15:32:48.745692 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:32:59.208763 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-04 15:32:59.787111 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-04 15:33:00.146866 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-04 15:33:03.785668 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:33:22.344265 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-04 15:33:22.367324 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-04 15:33:22.409519 gimli2 1528403 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-04 15:33:22.5213 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:33:25.129014 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-04 15:33:25.33621 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-04 15:33:25.556534 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-04 15:33:26.660429 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-04 15:33:26.682908 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-04 15:33:26.686568 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-04 15:33:26.690256 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-04 15:33:26.693773 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-04 15:33:26.713584 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-04 15:33:26.71718 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-04 15:33:26.970932 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-04 15:33:26.974566 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-04 15:33:26.978225 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-04 15:33:27.171633 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-04 15:33:27.188121 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-04 15:33:27.193549 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-04 15:33:27.452977 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:33:42.441142 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-04 15:33:42.652904 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-04 15:33:42.89041 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-04 15:33:43.025059 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:34:00.691681 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-04 15:34:01.359202 gimli2 1528403 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-04 15:34:01.701655 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-04 15:34:04.050345 gimli2 1528403 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-04 15:34:04.161018 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:34:31.843435 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-04 15:34:33.201164 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-04 15:34:39.151773 gimli2 1528403 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-04 15:34:39.329128 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:10.50013 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-04 15:35:11.79413 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-04 15:35:17.344214 gimli2 1528403 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-04 15:35:17.633031 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:22.525106 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-04 15:35:23.681699 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-04 15:35:23.714425 gimli2 1528403 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-04 15:35:23.840835 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:26.560701 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:27.480701 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:27.530554 gimli2 1528403 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-04 15:35:27.601013 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.650375 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.704908 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.768893 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.828847 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.887167 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.948139 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:27.998245 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:28.084827 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:31.14535 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:31.151046 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:31.209998 gimli2 1528403 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-04 15:35:31.297108 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:34.148215 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:35.088161 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:38.294873 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:38.996018 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:41.979511 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:42.918762 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:45.363376 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:46.443369 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:46.487027 gimli2 1528403 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-04 15:35:46.561059 gimli2 1528403 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-03 r84386), detected cores: 32
  2023-05-04 15:35:48.575058 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:49.652653 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:51.902185 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:52.792454 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:54.52383 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:55.361675 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:56.578114 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:57.569571 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:35:58.799035 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:35:59.755219 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:36:01.114233 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:36:02.238797 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:36:03.665934 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-04 15:36:04.695518 gimli2 1528403 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-04 15:36:04.725948 gimli2 1528403 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 5 | WARN 88 | SKIP 0 | PASS 205 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-compile_pseudo_pop.R:65:3'): Compiling pseudo pop works as expected. ──
  mean(pseudo_pop_2$counter_weight) not equal to 0.7465975.
  1/1 mismatches
  [1] 0.746 - 0.747 == -0.000738
  ── Failure ('test-compute_density.R:10:3'): compute_density works ──────────────
  cd[10] not equal to 0.537411.
  1/1 mismatches
  [1] 0.537 - 0.537 == -0.000478
  ── Failure ('test-estimate_npmetric_erf.R:34:3'): estimate_npmetric_erf works as expected ──
  res$risk_val[1] not equal to 1305125.
  1/1 mismatches
  [1] 1304486 - 1305125 == -639
  ── Failure ('test-estimate_npmetric_erf.R:74:3'): estimate_npmetric_erf works as expected (with earth) ──
  res$risk_val[1] not equal to 1305125.
  1/1 mismatches
  [1] 1304486 - 1305125 == -639
  ── Failure ('test-generate_pseudo_pop.R:248:3'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.3750209.
  1/1 mismatches
  [1] 0.375 - 0.375 == -1.21e-06
  
  [ FAIL 5 | WARN 88 | SKIP 0 | PASS 205 ]
  Error: Test failures
  Execution halted