Running 'testthat.R' [26s/27s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lime)
  > 
  > test_check("lime")
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error (test-data.frame.R:16:3): lime explanation only produces one entry per case and feature --
  Error: cannot xtfrm data frames
  Backtrace:
       x
    1. +-lime::explain(...) test-data.frame.R:16:2
    2. \-lime:::explain.data.frame(...)
    3.   \-base::lapply(...)
    4.     \-lime:::FUN(X[[i]], ...)
    5.       \-lime:::model_permutations(...)
    6.         \-base::order(as.data.frame(y)[1, ], decreasing = TRUE)
    7.           \-base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    8.             \-base:::FUN(X[[i]], ...)
    9.               +-base::as.vector(xtfrm(x))
   10.               +-base::xtfrm(x)
   11.               \-base::xtfrm.data.frame(x)
  -- Error (test-text.R:27:3): single sentence explanation -----------------------
  Error: cannot xtfrm data frames
  Backtrace:
       x
    1. +-lime::explain(to_explain, explainer, n_labels = 1, n_features = 2) test-text.R:27:2
    2. \-lime:::explain.character(...)
    3.   \-base::lapply(...)
    4.     \-lime:::FUN(X[[i]], ...)
    5.       \-lime:::model_permutations(...)
    6.         \-base::order(as.data.frame(y)[1, ], decreasing = TRUE)
    7.           \-base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    8.             \-base:::FUN(X[[i]], ...)
    9.               +-base::as.vector(xtfrm(x))
   10.               +-base::xtfrm(x)
   11.               \-base::xtfrm.data.frame(x)
  -- Error (test-text.R:38:3): multiple sentences, multiple explanations ---------
  Error: cannot xtfrm data frames
  Backtrace:
       x
    1. +-lime::explain(sentences, explainer, n_labels = 1, n_features = 2) test-text.R:38:2
    2. \-lime:::explain.character(...)
    3.   \-base::lapply(...)
    4.     \-lime:::FUN(X[[i]], ...)
    5.       \-lime:::model_permutations(...)
    6.         \-base::order(as.data.frame(y)[1, ], decreasing = TRUE)
    7.           \-base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    8.             \-base:::FUN(X[[i]], ...)
    9.               +-base::as.vector(xtfrm(x))
   10.               +-base::xtfrm(x)
   11.               \-base::xtfrm.data.frame(x)
  -- Error (test-text.R:49:3): multiple sentences, single explanation ------------
  Error: cannot xtfrm data frames
  Backtrace:
       x
    1. +-lime::explain(...) test-text.R:49:2
    2. \-lime:::explain.character(...)
    3.   \-base::lapply(...)
    4.     \-lime:::FUN(X[[i]], ...)
    5.       \-lime:::model_permutations(...)
    6.         \-base::order(as.data.frame(y)[1, ], decreasing = TRUE)
    7.           \-base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    8.             \-base:::FUN(X[[i]], ...)
    9.               +-base::as.vector(xtfrm(x))
   10.               +-base::xtfrm(x)
   11.               \-base::xtfrm.data.frame(x)
  
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 9 ]
  Error: Test failures
  Execution halted