Running ‘spelling.R’
  Running ‘testthat.R’ [38s/60s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(shinytest)
  shinytest requires PhantomJS to record and run tests.
  • To install it, run shinytest::installDependencies()
  • If it is installed, please check it is available on the PATH
  > library(activAnalyzer)
  > 
  > test_check("activAnalyzer")
  You have computed BMR using the following inputs: 
      age = 32
      weight = 67
      sex = male
  You have computed BMR using the following inputs: 
      age = 65
      weight = 58
      sex = female
  You have computed BMR using the following inputs: 
      age = 65
      weight = 58
      sex = undefined
  You have computed METs using the following inputs: 
      equation = Santos-Lozano et al. (2013) [Older adults]
      weight = 70
      sex = male
  You have computed METs using the following inputs: 
      equation = Santos-Lozano et al. (2013) [Older adults]
      weight = 70
      sex = female
  You have computed METs using the following inputs: 
      equation = Santos-Lozano et al. (2013) [Older adults]
      weight = 70
      sex = undefined
  You have computed METs using the following inputs: 
      equation = Santos-Lozano et al. (2013) [Adults]
      weight = 67
      sex = male
  You have computed METs using the following inputs: 
      equation = Santos-Lozano et al. (2013) [Adults]
      weight = 67
      sex = female
  You have computed METs using the following inputs: 
      equation = Santos-Lozano et al. (2013) [Adults]
      weight = 67
      sex = undefined
  You have computed METs using the following inputs: 
      equation = Sasaki et al. (2011) [Adults]
      weight = 70
      sex = male
  You have computed METs using the following inputs: 
      equation = Sasaki et al. (2011) [Adults]
      weight = 70
      sex = female
  You have computed METs using the following inputs: 
      equation = Sasaki et al. (2011) [Adults]
      weight = 70
      sex = undefined
  You have computed METs using the following inputs: 
      equation = Freedson et al. (1998) [Adults]
      weight = 70
      sex = male
  You have computed METs using the following inputs: 
      equation = Freedson et al. (1998) [Adults]
      weight = 70
      sex = female
  You have computed METs using the following inputs: 
      equation = Freedson et al. (1998) [Adults]
      weight = 70
      sex = undefined
  frame is 90
  streamFrame is 30
  allowanceFrame is 2
  frame is 90
  streamFrame is 30
  allowanceFrame is 2
  This Font Awesome icon ('far fa-file-alt') does not exist:
  * if providing a custom `html_dependency` these `name` checks can 
    be deactivated with `verify_fa = FALSE`
  frame is 90
  streamFrame is 30
  allowanceFrame is 2
  frame is 90
  streamFrame is 30
  allowanceFrame is 2
  frame is 90
  streamFrame is 30
  allowanceFrame is 2
  [ FAIL 5 | WARN 5 | SKIP 1 | PASS 131 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-create_fig_res_by_day.R:6:3): Create a figure with metrics for each day ──
  Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. ├─activAnalyzer::mark_wear_time(...) at test-create_fig_res_by_day.R:6:2
    2. │ ├─... %>% ...
    3. │ └─PhysicalActivity::wearingMarking(...)
    4. │   └─PhysicalActivity::markingTime(...)
    5. │     ├─base::as.POSIXct(paste(day1, startTime), tz = tz)
    6. │     └─base::as.POSIXct.default(paste(day1, startTime), tz = tz)
    7. │       ├─base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
    8. │       ├─base::as.POSIXlt(x, tz, ...)
    9. │       └─base::as.POSIXlt.character(x, tz, ...)
   10. └─dplyr::mutate(...)
  ── Error (test-create_flextable_summary.R:6:3): generate a flextable object ────
  Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. ├─activAnalyzer::mark_wear_time(...) at test-create_flextable_summary.R:6:2
    2. │ ├─... %>% ...
    3. │ └─PhysicalActivity::wearingMarking(...)
    4. │   └─PhysicalActivity::markingTime(...)
    5. │     ├─base::as.POSIXct(paste(day1, startTime), tz = tz)
    6. │     └─base::as.POSIXct.default(paste(day1, startTime), tz = tz)
    7. │       ├─base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
    8. │       ├─base::as.POSIXlt(x, tz, ...)
    9. │       └─base::as.POSIXlt.character(x, tz, ...)
   10. └─dplyr::mutate(...)
  ── Error (test-mark_wear_time.R:4:3): Total wear time is correctly computed ────
  Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. ├─activAnalyzer::mark_wear_time(...) at test-mark_wear_time.R:4:2
    2. │ ├─... %>% ...
    3. │ └─PhysicalActivity::wearingMarking(...)
    4. │   └─PhysicalActivity::markingTime(...)
    5. │     ├─base::as.POSIXct(paste(day1, startTime), tz = tz)
    6. │     └─base::as.POSIXct.default(paste(day1, startTime), tz = tz)
    7. │       ├─base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
    8. │       ├─base::as.POSIXlt(x, tz, ...)
    9. │       └─base::as.POSIXlt.character(x, tz, ...)
   10. └─dplyr::mutate(...)
  ── Error (test-plot_data.R:3:3): a plot with data marked for non wear time is obtained ──
  Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. ├─prepare_dataset(data = file) %>% mark_wear_time() %>% ... at test-plot_data.R:3:2
    2. ├─activAnalyzer::plot_data(.)
    3. │ └─base::format(data$date, "%d-%m-%y")
    4. ├─activAnalyzer::mark_wear_time(.)
    5. │ ├─... %>% ...
    6. │ └─PhysicalActivity::wearingMarking(...)
    7. │   └─PhysicalActivity::markingTime(...)
    8. │     ├─base::as.POSIXct(paste(day1, startTime), tz = tz)
    9. │     └─base::as.POSIXct.default(paste(day1, startTime), tz = tz)
   10. │       ├─base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
   11. │       ├─base::as.POSIXlt(x, tz, ...)
   12. │       └─base::as.POSIXlt.character(x, tz, ...)
   13. └─dplyr::mutate(...)
  ── Error (test-plot_data_with_intensity.R:3:3): a plot with data marked for intensity is obtained ──
  Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. ├─... %>% plot_data_with_intensity() at test-plot_data_with_intensity.R:3:2
    2. ├─activAnalyzer::plot_data_with_intensity(.)
    3. │ └─base::format(data$date, "%d-%m-%y")
    4. ├─activAnalyzer::mark_intensity(.)
    5. │ └─base::as.factor(data$date)
    6. │   └─base::is.factor(x)
    7. ├─activAnalyzer::mark_wear_time(.)
    8. │ ├─... %>% ...
    9. │ └─PhysicalActivity::wearingMarking(...)
   10. │   └─PhysicalActivity::markingTime(...)
   11. │     ├─base::as.POSIXct(paste(day1, startTime), tz = tz)
   12. │     └─base::as.POSIXct.default(paste(day1, startTime), tz = tz)
   13. │       ├─base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
   14. │       ├─base::as.POSIXlt(x, tz, ...)
   15. │       └─base::as.POSIXlt.character(x, tz, ...)
   16. └─dplyr::mutate(...)
  
  [ FAIL 5 | WARN 5 | SKIP 1 | PASS 131 ]
  Error: Test failures
  Execution halted