Running ‘testthat.R’ [29s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pmdplyr)
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("pmdplyr")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-panel_convert.R:72:5): pibble to plm to tsibble ─────────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-panel_convert.R:72:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─pb %>% panel_convert("plm") %>% panel_convert("tsibble")
    5. └─pmdplyr::panel_convert(., "tsibble")
    6.   ├─sjlabelled::remove_all_labels(sjlabelled::as_labelled(data[[panel_convert_id]]))
    7.   ├─sjlabelled::as_labelled(data[[panel_convert_id]])
    8.   └─sjlabelled:::as_labelled.default(data[[panel_convert_id]])
    9.     └─sjlabelled:::as_labelled_helper(...)
   10.       ├─sjlabelled::get_na(x)
   11.       └─sjlabelled:::get_na.default(x)
   12.         └─sjlabelled:::get_na_helper(x, as.tag)
  ── Error (test-panel_convert.R:86:5): pibble pdata.frame conversion ────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
       █
    1. ├─testthat::expect_equal(panel_convert(pd, to = "pibble"), pb) test-panel_convert.R:86:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─pmdplyr::panel_convert(pd, to = "pibble")
    5.   ├─sjlabelled::remove_all_labels(sjlabelled::as_labelled(data[[panel_convert_id]]))
    6.   ├─sjlabelled::as_labelled(data[[panel_convert_id]])
    7.   └─sjlabelled:::as_labelled.default(data[[panel_convert_id]])
    8.     └─sjlabelled:::as_labelled_helper(...)
    9.       ├─sjlabelled::get_na(x)
   10.       └─sjlabelled:::get_na.default(x)
   11.         └─sjlabelled:::get_na_helper(x, as.tag)
  
  [ FAIL 2 | WARN 13 | SKIP 0 | PASS 301 ]
  Error: Test failures
  Execution halted