Running ‘testthat.R’ [72s/89s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(WeightIt)
  > 
  > test_check("WeightIt")
  [ FAIL 4 | WARN 0 | SKIP 9 | PASS 1260 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • !capabilities("long.double") is TRUE (6): 'test-update.R:2:3',
    'test-update.R:118:3', 'test-update.R:178:3', 'test-update.R:325:3',
    'test-update.R:470:3', 'test-update.R:615:3'
  • On CRAN (3): 'test-method_cbps.R:2:3', 'test-method_cbps.R:108:3',
    'test-method_cbps.R:197:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-moments.R:22:7'): moments works as expected, binary ──────────
  Expected `{ ... }` to run without any conditions.
  i Actually got a <rlib_error_package_not_found> with text:
    The package "optweight" (>= 1.0.0) is required.
  ── Failure ('test-moments.R:31:7'): moments works as expected, binary ──────────
  Expected `{ ... }` to run without any conditions.
  i Actually got a <rlib_error_package_not_found> with text:
    The package "optweight" (>= 1.0.0) is required.
  ── Failure ('test-moments.R:86:7'): moments works as expected, multi ───────────
  Expected `{ ... }` to run without any conditions.
  i Actually got a <rlib_error_package_not_found> with text:
    The package "optweight" (>= 1.0.0) is required.
  ── Failure ('test-moments.R:95:7'): moments works as expected, multi ───────────
  Expected `{ ... }` to run without any conditions.
  i Actually got a <rlib_error_package_not_found> with text:
    The package "optweight" (>= 1.0.0) is required.
  
  [ FAIL 4 | WARN 0 | SKIP 9 | PASS 1260 ]
  Error: Test failures
  Execution halted