Running ‘testthat.R’ [74s/165s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-02-15 15:24:42.145558 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:24:46.293006 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-15 15:24:46.512294 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-15 15:24:46.700438 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-15 15:24:52.262576 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-15 15:24:52.282004 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-15 15:24:52.285404 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-15 15:24:52.288858 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-15 15:24:52.292342 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-15 15:24:52.312048 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-15 15:24:52.315533 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-15 15:24:52.517323 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-15 15:24:52.521129 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-15 15:24:52.524983 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-15 15:24:52.850678 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-15 15:24:52.857924 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-15 15:24:52.863522 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-15 15:24:53.064531 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:25:09.199267 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-15 15:25:09.34469 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-15 15:25:09.412946 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-15 15:25:11.340186 gimli2 3119348 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-15 15:25:11.453068 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:25:35.029725 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-15 15:25:35.056778 gimli2 3119348 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-15 15:25:35.301579 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-15 15:26:17.161941 gimli2 3119348 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-15 15:26:17.997195 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:24.152293 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-15 15:26:25.250464 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-15 15:26:25.309781 gimli2 3119348 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-15 15:26:25.529134 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:29.127039 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:30.086339 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:30.150179 gimli2 3119348 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-15 15:26:30.269142 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.33088 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.396275 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.46639 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.530043 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.597883 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.674084 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.740871 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.808804 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:30.856173 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:34.07435 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:34.080633 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:34.234869 gimli2 3119348 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-15 15:26:34.356974 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:37.131727 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:38.051492 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:40.619864 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:41.557466 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:44.189725 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:45.094593 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:47.740819 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:48.793504 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:48.836981 gimli2 3119348 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-15 15:26:48.937037 gimli2 3119348 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-14 r83833), detected cores: 32
  2023-02-15 15:26:51.214013 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:52.224298 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:54.386432 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:55.393251 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:26:57.477841 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:26:59.242314 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:27:01.341453 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:27:02.278172 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:27:04.337046 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:27:05.321049 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:27:06.452182 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:27:07.382889 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:27:08.951284 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 15:27:09.879184 gimli2 3119348 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 15:27:09.893221 gimli2 3119348 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 8 | WARN 24 | SKIP 3 | PASS 196 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • earth cannot be loaded (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-absolute_weighted_corr_fun.R:10'): absoulte_weighted_corr_fun works as expected. ──
  val1$mean_absolute_corr not equal to 0.09003267.
  1/1 mismatches
  [1] 0.0851 - 0.09 == -0.00489
  ── Failure ('test-absolute_weighted_corr_fun.R:11'): absoulte_weighted_corr_fun works as expected. ──
  val1$median_absolute_corr not equal to 0.07821234.
  1/1 mismatches
  [1] 0.0691 - 0.0782 == -0.00908
  ── Failure ('test-absolute_weighted_corr_fun.R:12'): absoulte_weighted_corr_fun works as expected. ──
  val1$maximal_absolute_corr not equal to 0.2222087.
  1/1 mismatches
  [1] 0.218 - 0.222 == -0.00434
  ── Failure ('test-generate_pseudo_pop.R:37'): generate_pseudo_pop works as expected. ──
  ps_pop1$adjusted_corr_results$mean_absolute_corr not equal to 0.2580037.
  1/1 mismatches
  [1] 0.258 - 0.258 == 4.44e-05
  ── Failure ('test-generate_pseudo_pop.R:75'): generate_pseudo_pop works as expected. ──
  ps_pop2$adjusted_corr_results$mean_absolute_corr not equal to 0.2243034.
  1/1 mismatches
  [1] 0.224 - 0.224 == -0.000124
  ── Failure ('test-generate_pseudo_pop.R:279'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.4481222.
  1/1 mismatches
  [1] 0.375 - 0.448 == -0.0731
  ── Failure ('test-generate_pseudo_pop.R:306'): generate_pseudo_pop works as expected. ──
  ps_pop4$adjusted_corr_results$mean_absolute_corr not equal to 0.2210705.
  1/1 mismatches
  [1] 0.221 - 0.221 == -9.3e-05
  ── Failure ('test-generate_pseudo_pop.R:333'): generate_pseudo_pop works as expected. ──
  ps_pop5$adjusted_corr_results$mean_absolute_corr not equal to 0.1078871.
  1/1 mismatches
  [1] 0.108 - 0.108 == -0.000196
  
  [ FAIL 8 | WARN 24 | SKIP 3 | PASS 196 ]
  Error: Test failures
  Execution halted