Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [209s/335s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(metaumbrella)
  > 
  > test_check("metaumbrella")
  Analyzing factor: Pharmacological 
  
  Analyzing factor: ASD 
  
  Analyzing factor: ASD 
  
  Analyzing factor: ASD 
  
  Analyzing factor: SSRI 
  
  Analyzing factor: SSRI 
  
  Analyzing factor: Smoking 
  
  Analyzing factor: Smoking 
  
  Analyzing factor: Smoking 
  
  
  Analyzing factor: Smoking 
  In factor 'Smoking': 
  - study: 'el-Sami (2005)' contains multiple outcomes
  
  In factor 'Smoking' some studies have multiple outcomes but they are not associated with any within-study correlation (which can be indicated in the 'r' column of the dataset). A value of r = 0.5 is assumed.
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  Analyzing factor: Pharmacological 
  
  Analyzing factor: Pharmacological 
  Analyzing factor: Surgical 
  
  Analyzing factor: ADHD 
  Analyzing factor: ASD 
  Analyzing factor: dyslexia 
  Analyzing factor: ID 
  
  Analyzing factor: Yoga 
  Analyzing factor: Aerobic training 
  Analyzing factor: Resistance training 
  Analyzing factor: Mindfulness 
  
  Analyzing factor: ID 
  
  Analyzing factor: Smoking 
  
  Analyzing factor: SSRI 
  
  Analyzing factor: Yoga 
  
  Analyzing factor: Pharmacological 
  
  Analyzing factor: ADHD 
  
  Analyzing factor: Pharmacological 
  
  Analyzing factor: ADHD 
  
  Analyzing factor: Pharmacological 
  
  Analyzing factor: Pharmacological 
  
  [ FAIL 5 | WARN 0 | SKIP 52 | PASS 530 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (52)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-functions_multilevel.R:27:3): agg.data correctly aggregates studies with multiple effect size estimates: SMD ──
  Error in `metafor::aggregate.escalc(subset(df.agg.mfr, multiple_es == "groups"), 
      cluster = author, struct = "ID", weighted = TRUE)`: No missing values allowed in 'cluster' variable.
  Backtrace:
      ▆
   1. └─metafor::aggregate.escalc(...) at test-functions_multilevel.R:27:2
  ── Error (test-functions_multilevel.R:61:3): agg.data correctly aggregates studies with multiple effect size estimates: OR ──
  Error in `metafor::aggregate.escalc(subset(df.agg.mfr, multiple_es == "groups"), 
      cluster = paste0(author, year), struct = "ID", weighted = TRUE)`: Processing terminated since k == 0.
  Backtrace:
      ▆
   1. └─metafor::aggregate.escalc(...) at test-functions_multilevel.R:61:2
  ── Error (test-functions_multilevel.R:94:3): agg.data correctly aggregates studies with multiple effect size estimates: RR ──
  Error in `metafor::aggregate.escalc(subset(df.agg.mfr, multiple_es == "groups"), 
      cluster = author, struct = "ID", weighted = TRUE)`: No missing values allowed in 'cluster' variable.
  Backtrace:
      ▆
   1. └─metafor::aggregate.escalc(...) at test-functions_multilevel.R:94:2
  ── Error (test-functions_multilevel.R:138:3): agg.data correctly aggregates studies with multiple effect size estimates: IRR ──
  Error in `metafor::aggregate.escalc(subset(df.agg.mfr, multiple_es == "groups"), 
      cluster = author, struct = "ID", weighted = TRUE)`: No missing values allowed in 'cluster' variable.
  Backtrace:
      ▆
   1. └─metafor::aggregate.escalc(...) at test-functions_multilevel.R:138:2
  ── Error (test-functions_multilevel.R:172:3): agg.data correctly aggregates studies with multiple effect size estimates: HR ──
  Error in `metafor::aggregate.escalc(subset(df.agg.mfr, multiple_es == "groups"), 
      cluster = author, struct = "ID", weighted = TRUE)`: No missing values allowed in 'cluster' variable.
  Backtrace:
      ▆
   1. └─metafor::aggregate.escalc(...) at test-functions_multilevel.R:172:2
  
  [ FAIL 5 | WARN 0 | SKIP 52 | PASS 530 ]
  Error: Test failures
  Execution halted