Running ‘testthat.R’ [18s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sjmisc)
  > 
  > test_check("sjmisc")
  # x
  
       label frq raw.prc valid.prc cum.prc
  1    First   5   41.67     41.67   41.67
  2 Not home   3   25.00     25.00   66.67
  3  Refused   4   33.33     33.33  100.00
  
  
  # y
  
      label frq raw.prc valid.prc cum.prc
  1     A D   5   41.67     41.67   41.67
  2    An E   1    8.33      8.33   50.00
  3 The eff   6   50.00     50.00  100.00
  
  
       label frq raw.prc valid.prc cum.prc
  1    First   5   41.67     41.67   41.67
  2 Not home   3   25.00     25.00   66.67
  3  Refused   4   33.33     33.33  100.00
  
  # x
  
       label frq raw.prc valid.prc cum.prc
  1    First   5   41.67     41.67   41.67
  2 Not home   3   25.00     25.00   66.67
  3  Refused   4   33.33     33.33  100.00
  
  
  # x
  
       label frq raw.prc valid.prc cum.prc
  1    First   5   41.67     41.67   41.67
  2 Not home   3   25.00     25.00   66.67
  3  Refused   4   33.33     33.33  100.00
  
  
  # y
  
      label frq raw.prc valid.prc cum.prc
  1     A D   5   41.67     41.67   41.67
  2    An E   1    8.33      8.33   50.00
  3 The eff   6   50.00     50.00  100.00
  
  
       label frq raw.prc valid.prc cum.prc
  1    First   5   41.67     41.67   41.67
  2 Not home   3   25.00     25.00   66.67
  3  Refused   4   33.33     33.33  100.00
  
  
   iter imp variable
    1   1  Species
    1   2  Species
    1   3  Species
    1   4  Species
    1   5  Species
    2   1  Species
    2   2  Species
    2   3  Species
    2   4  Species
    2   5  Species
    3   1  Species
    3   2  Species
    3   3  Species
    3   4  Species
    3   5  Species
    4   1  Species
    4   2  Species
    4   3  Species
    4   4  Species
    4   5  Species
    5   1  Species
    5   2  Species
    5   3  Species
    5   4  Species
    5   5  Species
  One or more of the old values are recoded into identical new values.
  Please check if you correctly specified the recode-pattern,
  else separate multiple values with comma, e.g. rec="a,b,c=1; d,e,f=2".
  ── 1. Error: std, split_var (@test-splitvar.R#12)  ─────────────────────────────
  Assigned data `group` must be compatible with existing data.
  ℹ Error occurred for column `disp`.
  ✖ No common type for `value` <factor<d3bfc>> and `x` <double>.
  Backtrace:
    1. dplyr::group_by(., cyl)
    9. sjmisc::split_var(., disp, n = 3, append = FALSE)
   10. sjmisc:::recode_fun(...)
   12. tibble:::`[<-.tbl_df`(...)
   13. tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   14. tibble:::tbl_subassign_row(x, i, value, value_arg)
   15. base::tryCatch(...)
   16. base:::tryCatchList(expr, classes, parentenv, handlers)
   17. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   18. value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 154 | SKIPPED: 12 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: std, split_var (@test-splitvar.R#12) 
  
  Error: testthat unit tests failed
  Execution halted