Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(panelr)
  Loading required package: lme4
  Loading required package: Matrix
  
  Attaching package: 'panelr'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("panelr")
  -- 1. Failure: dplyr functions return panel_data objects (@test-utils.R#29)  ---
  select(w, lwage) inherits from `grouped_df/tbl_df/tbl/data.frame` not `panel_data`.
  
  -- 2. Error: widen_panel works (@test-utils.R#46)  -----------------------------
  argument is of length zero
  Backtrace:
   1. testthat::expect_s3_class(widen_panel(w), "data.frame")
   4. panelr::widen_panel(w)
  
  -- 3. Error: long_panel works (basic case) (@test-utils.R#72)  -----------------
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(w, prefix = "_W", begin = 1, end = 3)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 4. Error: long_panel works (unbalanced data) (@test-utils.R#96)  ------------
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(w, prefix = "_W", begin = 1, end = 3)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 5. Error: long_panel works (unbalanced data, numeric waves not begin w/ 1) (@
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(w, prefix = "_W", begin = 2, end = 4)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 6. Error: long_panel works (character periods) (@test-utils.R#146)  ---------
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(w, prefix = "_W", begin = "A", end = "C")
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 7. Error: long_panel works (beginning label) (@test-utils.R#171)  -----------
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(...)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 8. Error: long_panel works (beginning label/character periods) (@test-utils.R
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(...)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 9. Error: long_panel works (prefix and suffix/character periods) (@test-utils
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(...)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 10. Error: long_panel works (beginning/no separators/character periods) (@tes
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(...)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 11. Error: long_panel works (redundant match in varname, ambiguous waves) (@t
  argument is of length zero
  Backtrace:
   1. testthat::expect_equal(...)
   4. panelr::long_panel(...)
   5. panelr::are_varying(tmp_pd, !!!syms(v.names))
  
  -- 12. Error: (unknown) (@test-utils.R#292)  -----------------------------------
  argument is of length zero
  Backtrace:
   1. panelr::wbm(lwage ~ union, data = w, pvals = FALSE)
   2. panelr:::wb_prepare_data(...)
   3. panelr:::wb_formula_parser(formula, dv, data)
   4. panelr::are_varying(data, !!sym(var))
  
  -- 13. Error: (unknown) (@test_asym.R#12)  -------------------------------------
  argument is of length zero
  Backtrace:
   1. panelr::asym(wks ~ union + lwage, data = wages)
   2. panelr:::diff_data(...)
   3. panelr:::wb_formula_parser(formula, dv, data)
   4. panelr::are_varying(data, !!sym(var))
  
  -- 14. Error: (unknown) (@test_asym_gee.R#12)  ---------------------------------
  argument is of length zero
  Backtrace:
   1. panelr::asym_gee(wks ~ union + lwage, data = wages)
   2. panelr:::diff_data(...)
   3. panelr:::wb_formula_parser(formula, dv, data)
   4. panelr::are_varying(data, !!sym(var))
  
  -- 15. Error: (unknown) (@test_fdm.R#12)  --------------------------------------
  argument is of length zero
  Backtrace:
   1. panelr::fdm(wks ~ union + lwage, data = wages)
   2. panelr:::diff_data(...)
   3. panelr:::wb_formula_parser(formula, dv, data)
   4. panelr::are_varying(data, !!sym(var))
  
  -- 16. Error: (unknown) (@test_wbgee.R#11)  ------------------------------------
  argument is of length zero
  Backtrace:
   1. panelr::wbgee(wks ~ union + lwage | blk, data = wages)
   2. panelr:::wb_prepare_data(...)
   3. panelr:::wb_formula_parser(formula, dv, data)
   4. panelr::are_varying(data, !!sym(var))
  
  -- 17. Error: (unknown) (@test_wbm.R#11)  --------------------------------------
  argument is of length zero
  Backtrace:
   1. panelr::wbm(wks ~ union + lwage | blk, data = wages)
   2. panelr:::wb_prepare_data(...)
   3. panelr:::wb_formula_parser(formula, dv, data)
   4. panelr::are_varying(data, !!sym(var))
  
  == testthat results  ===========================================================
  [ OK: 22 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 17 ]
  1. Failure: dplyr functions return panel_data objects (@test-utils.R#29) 
  2. Error: widen_panel works (@test-utils.R#46) 
  3. Error: long_panel works (basic case) (@test-utils.R#72) 
  4. Error: long_panel works (unbalanced data) (@test-utils.R#96) 
  5. Error: long_panel works (unbalanced data, numeric waves not begin w/ 1) (@test-utils.R#120) 
  6. Error: long_panel works (character periods) (@test-utils.R#146) 
  7. Error: long_panel works (beginning label) (@test-utils.R#171) 
  8. Error: long_panel works (beginning label/character periods) (@test-utils.R#198) 
  9. Error: long_panel works (prefix and suffix/character periods) (@test-utils.R#225) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted