Running ‘testthat.R’ [2s/2s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(suntools)
  > 
  > test_check("suntools")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-sun-methods.R:10:3'): crepuscule() calculates Astronomical dawn ──
  crepuscule(...) (`actual`) not equal to structure(...) (`expected`).
  
  actual vs expected
                   day_frac
  - actual[1, ]   0.1928667
  + expected[1, ] 0.2762000
  
    `actual$day_frac`: 0.193
  `expected$day_frac`: 0.276
  ── Failure ('test-sun-methods.R:35:3'): crepuscule() can calculate Nautical dawn ──
  crepuscule(...) (`actual`) not equal to structure(...) (`expected`).
  
  actual vs expected
                   day_frac
  - actual[1, ]   0.2288488
  + expected[1, ] 0.3121822
  
    `actual$day_frac`: 0.229
  `expected$day_frac`: 0.312
  ── Failure ('test-sun-methods.R:53:3'): crepescule() can calulate Civil dawn ───
  crepuscule(Hels, d041224, solarDep = 6, direction = "dawn", POSIXct.out = TRUE) (`actual`) not equal to structure(...) (`expected`).
  
  actual vs expected
                   day_frac
  - actual[1, ]   0.2685915
  + expected[1, ] 0.3519249
  
    `actual$day_frac`: 0.269
  `expected$day_frac`: 0.352
  ── Failure ('test-sun-methods.R:71:3'): sunriset() can calculate the sunrise ───
  sunriset(hels, d041224, direction = "sunrise", POSIXct.out = TRUE) (`actual`) not equal to structure(...) (`expected`).
  
  actual vs expected
                   day_frac
  - actual[1, ]   0.3090916
  + expected[1, ] 0.3924249
  
    `actual$day_frac`: 0.309
  `expected$day_frac`: 0.392
  ── Failure ('test-sun-methods.R:89:3'): solarnoon() can calculate the solar noon ──
  solarnoon(Hels, d041224, POSIXct.out = TRUE) (`actual`) not equal to structure(...) (`expected`).
  
  actual vs expected
                   day_frac
  - actual[1, ]   0.4304632
  + expected[1, ] 0.5137966
  
    `actual$day_frac`: 0.430
  `expected$day_frac`: 0.514
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1 ]
  Error: Test failures
  Execution halted