Running ‘testthat.R’ [41s/42s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(textrecipes)
  Loading required package: recipes
  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
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  > 
  > test_check("textrecipes")
  
  Attaching package: 'vctrs'
  
  The following object is masked from 'package:tibble':
  
      data_frame
  
  The following object is masked from 'package:dplyr':
  
      data_frame
  
  [ FAIL 4 | WARN 0 | SKIP 113 | PASS 360 ]
  
  ══ Skipped tests (113) ═════════════════════════════════════════════════════════
  • On CRAN (93): 'test-clean_levels.R:90:3', 'test-clean_levels.R:127:3',
    'test-clean_names.R:55:3', 'test-clean_names.R:92:3',
    'test-dummy_hash.R:33:3', 'test-dummy_hash.R:46:3',
    'test-dummy_hash.R:145:3', 'test-extension_check.R:2:3', 'test-lda.R:90:3',
    'test-lemma.R:13:3', 'test-lemma.R:46:3', 'test-lemma.R:55:3',
    'test-lemma.R:80:3', 'test-lemma.R:114:3', 'test-ngram.R:28:3',
    'test-ngram.R:279:3', 'test-ngram.R:317:3', 'test-pos_filter.R:13:3',
    'test-pos_filter.R:38:3', 'test-pos_filter.R:63:3', 'test-pos_filter.R:92:3',
    'test-pos_filter.R:101:3', 'test-pos_filter.R:126:3',
    'test-pos_filter.R:160:3', 'test-sequence_onehot.R:97:3',
    'test-sequence_onehot.R:131:3', 'test-sequence_onehot.R:163:3',
    'test-sequence_onehot.R:236:3', 'test-sequence_onehot.R:252:3',
    'test-stem.R:100:3', 'test-stem.R:142:3', 'test-stopwords.R:105:3',
    'test-stopwords.R:149:3', 'test-text_normalization.R:41:3',
    'test-text_normalization.R:83:3', 'test-textfeature.R:52:3',
    'test-textfeature.R:77:3', 'test-textfeature.R:103:3',
    'test-textfeature.R:180:3', 'test-textfeature.R:225:3',
    'test-textfeature.R:241:3', 'test-texthash.R:133:3', 'test-tf.R:125:3',
    'test-tf.R:172:3', 'test-tf.R:245:3', 'test-tf.R:260:3', 'test-tfidf.R:76:3',
    'test-tfidf.R:114:3', 'test-tfidf.R:155:3', 'test-tfidf.R:234:3',
    'test-tfidf.R:249:3', 'test-tokenfilter.R:18:3', 'test-tokenfilter.R:42:3',
    'test-tokenfilter.R:82:3', 'test-tokenfilter.R:161:3',
    'test-tokenfilter.R:199:3', 'test-tokenize.R:45:3', 'test-tokenize.R:95:3',
    'test-tokenize.R:104:3', 'test-tokenize.R:164:3', 'test-tokenize.R:201:3',
    'test-tokenize_bpe.R:124:3', 'test-tokenize_bpe.R:168:3',
    'test-tokenize_bpe.R:205:3', 'test-tokenize_sentencepiece.R:114:3',
    'test-tokenize_sentencepiece.R:142:3', 'test-tokenize_sentencepiece.R:179:3',
    'test-tokenize_wordpiece.R:82:3', 'test-tokenize_wordpiece.R:119:3',
    'test-tokenizer-spacyr.R:12:3', 'test-tokenizer-tokenizersbpe.R:76:3',
    'test-tokenizer-tokenizersbpe.R:155:3', 'test-tokenlist.R:112:3',
    'test-tokenlist.R:124:3', 'test-tokenlist.R:143:3', 'test-tokenlist.R:155:3',
    'test-tokenlist.R:223:3', 'test-tokenlist.R:303:3', 'test-tokenlist.R:356:3',
    'test-tokenlist.R:381:3', 'test-tokenlist.R:431:3', 'test-tokenlist.R:535:3',
    'test-tokenmerge.R:50:3', 'test-tokenmerge.R:64:3', 'test-tokenmerge.R:95:3',
    'test-tokenmerge.R:163:3', 'test-tokenmerge.R:178:3',
    'test-untokenize.R:92:3', 'test-untokenize.R:130:3',
    'test-word_embeddings.R:156:3', 'test-word_embeddings.R:300:3',
    'test-word_embeddings.R:378:3', 'test-word_embeddings.R:389:3'
  • text2vec cannot be loaded (20): 'test-dummy_hash.R:11:3',
    'test-dummy_hash.R:58:3', 'test-dummy_hash.R:74:3', 'test-dummy_hash.R:94:3',
    'test-dummy_hash.R:185:3', 'test-dummy_hash.R:214:3',
    'test-dummy_hash.R:234:3', 'test-lda.R:11:3', 'test-lda.R:29:3',
    'test-lda.R:44:3', 'test-lda.R:64:3', 'test-lda.R:128:3', 'test-lda.R:159:3',
    'test-lda.R:180:3', 'test-texthash.R:14:3', 'test-texthash.R:37:3',
    'test-texthash.R:54:3', 'test-texthash.R:76:3', 'test-texthash.R:172:3',
    'test-texthash.R:220:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dummy_hash.R:133:3'): bake method errors when needed non-standard role columns are missing ──
  <recipes_error_step/recipes_error/rlang_error/error/condition>
  Error in `step_dummy_hash()`: Error in `step_dummy_hash()`:
  Caused by error in `getGeneric()`:
  ! no generic function found for 'crossprod'
  Backtrace:
       ▆
    1. ├─recipes::prep(rec, training = test_data, verbose = FALSE) at test-dummy_hash.R:133:2
    2. ├─recipes:::prep.recipe(rec, training = test_data, verbose = FALSE)
    3. │ ├─recipes:::recipes_error_context(...)
    4. │ │ ├─base::withCallingHandlers(...)
    5. │ │ └─base::force(expr)
    6. │ ├─recipes::bake(x$steps[[i]], new_data = training)
    7. │ └─textrecipes:::bake.step_dummy_hash(x$steps[[i]], new_data = training)
    8. │   └─textrecipes:::hashing_function(...)
    9. │     └─textrecipes:::list_to_hash(data, n, signed)
   10. ├─base::loadNamespace(x)
   11. │ ├─base::namespaceImportFrom(...)
   12. │ │ └─base::asNamespace(ns)
   13. │ └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   14. │   └─base::namespaceImport(...)
   15. │     └─base::namespaceImportFrom(...)
   16. │       └─base::.mergeImportMethods(impenv, ns, impvars[[i]])
   17. │         └─methods:::.mergeMethodsTable2(...)
   18. │           └─methods::getGeneric(f, TRUE, envir, package)
   19. │             └─base::stop(...)
   20. └─base::.handleSimpleError(...)
   21.   └─recipes (local) h(simpleError(msg, call))
   22.     └─recipes:::stop_recipes_step(call = call(step_name), parent = cnd)
   23.       └─recipes:::stop_recipes(...)
   24.         └─rlang::abort(...)
  ── Error ('test-texthash.R:121:3'): bake method errors when needed non-standard role columns are missing ──
  <recipes_error_step/recipes_error/rlang_error/error/condition>
  Error in `step_texthash()`: Error in `step_texthash()`:
  Caused by error in `getGeneric()`:
  ! no generic function found for 'crossprod'
  Backtrace:
       ▆
    1. ├─recipes::prep(rec, training = tokenized_test_data, verbose = FALSE) at test-texthash.R:121:2
    2. ├─recipes:::prep.recipe(rec, training = tokenized_test_data, verbose = FALSE)
    3. │ ├─recipes:::recipes_error_context(...)
    4. │ │ ├─base::withCallingHandlers(...)
    5. │ │ └─base::force(expr)
    6. │ ├─recipes::bake(x$steps[[i]], new_data = training)
    7. │ └─textrecipes:::bake.step_texthash(x$steps[[i]], new_data = training)
    8. │   └─textrecipes:::hashing_function(...)
    9. │     └─textrecipes:::list_to_hash(data, n, signed)
   10. ├─base::loadNamespace(x)
   11. │ ├─base::namespaceImportFrom(...)
   12. │ │ └─base::asNamespace(ns)
   13. │ └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   14. │   └─base::namespaceImport(...)
   15. │     └─base::namespaceImportFrom(...)
   16. │       └─base::.mergeImportMethods(impenv, ns, impvars[[i]])
   17. │         └─methods:::.mergeMethodsTable2(...)
   18. │           └─methods::getGeneric(f, TRUE, envir, package)
   19. │             └─base::stop(...)
   20. └─base::.handleSimpleError(...)
   21.   └─recipes (local) h(simpleError(msg, call))
   22.     └─recipes:::stop_recipes_step(call = call(step_name), parent = cnd)
   23.       └─recipes:::stop_recipes(...)
   24.         └─rlang::abort(...)
  ── Error ('test-texthash.R:209:3'): keep_original_cols - can prep recipes with it missing ──
  `rec <- prep(rec)` threw an unexpected error.
  Message: Error in `step_texthash()`:
  Caused by error in `getGeneric()`:
  ! no generic function found for 'crossprod'
  Class:   recipes_error_step/recipes_error/rlang_error/error/condition
  Backtrace:
       ▆
    1. ├─recipes::prep(rec)
    2. ├─recipes:::prep.recipe(rec)
    3. │ ├─recipes:::recipes_error_context(...)
    4. │ │ ├─base::withCallingHandlers(...)
    5. │ │ └─base::force(expr)
    6. │ ├─recipes::bake(x$steps[[i]], new_data = training)
    7. │ └─textrecipes:::bake.step_texthash(x$steps[[i]], new_data = training)
    8. │   └─textrecipes:::hashing_function(...)
    9. │     └─textrecipes:::list_to_hash(data, n, signed)
   10. ├─base::loadNamespace(x)
   11. │ ├─base::namespaceImportFrom(...)
   12. │ │ └─base::asNamespace(ns)
   13. │ └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   14. │   └─base::namespaceImport(...)
   15. │     └─base::namespaceImportFrom(...)
   16. │       └─base::.mergeImportMethods(impenv, ns, impvars[[i]])
   17. │         └─methods:::.mergeMethodsTable2(...)
   18. │           └─methods::getGeneric(f, TRUE, envir, package)
   19. │             └─base::stop(...)
   20. └─base::.handleSimpleError(...)
   21.   └─recipes (local) h(simpleError(msg, call))
   22.     └─recipes:::stop_recipes_step(call = call(step_name), parent = cnd)
   23.       └─recipes:::stop_recipes(...)
   24.         └─rlang::abort(...)
  ── Failure ('test-texthash.R:213:3'): keep_original_cols - can prep recipes with it missing ──
  `bake(rec, new_data = test_data)` threw an unexpected error.
  Message: At least one step has not been trained. Please run `prep`.
  Class:   rlang_error/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(bake(rec, new_data = test_data), NA) at test-texthash.R:213:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. ├─recipes::bake(rec, new_data = test_data)
   8. └─recipes:::bake.recipe(rec, new_data = test_data)
   9.   └─rlang::abort("At least one step has not been trained. Please run `prep`.")
  
  [ FAIL 4 | WARN 0 | SKIP 113 | PASS 360 ]
  Error: Test failures
  Execution halted