Running ‘testthat.R’ [64s/69s]
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")
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  1 package (textfeatures) is needed for this step but is not installed.
  To install run: `install.packages("textfeatures")`
  
  Attaching package: 'vctrs'
  
  The following object is masked from 'package:tibble':
  
      data_frame
  
  The following object is masked from 'package:dplyr':
  
      data_frame
  
  [ FAIL 6 | WARN 0 | SKIP 99 | PASS 365 ]
  
  ══ Skipped tests (99) ══════════════════════════════════════════════════════════
  • On CRAN (94): '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:110:3', 'test-dummy_hash.R:151:3',
    'test-dummy_hash.R:230:3', 'test-dummy_hash.R:249:3',
    'test-extension_check.R:2:3', 'test-lda.R:58:3', 'test-lda.R:94:3',
    'test-lda.R:174:3', 'test-lda.R:194: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:180:3',
    'test-texthash.R:90:3', 'test-texthash.R:137:3', 'test-texthash.R:214:3',
    'test-texthash.R:233: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:371:3',
    'test-tokenlist.R:421:3', 'test-tokenlist.R:525: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'
  • textfeatures cannot be loaded (5): 'test-textfeature.R:14:3',
    'test-textfeature.R:35:3', 'test-textfeature.R:190:3',
    'test-textfeature.R:218:3', 'test-textfeature.R:237:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-s3-methods.R:20:1'): (code run outside of `test_that()`) ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'textfeatures'
  Backtrace:
       ▆
    1. ├─r01 %>% step_textfeature(text) at test-s3-methods.R:20:1
    2. ├─textrecipes::step_textfeature(., text)
    3. │ ├─recipes::add_step(...)
    4. │ └─textrecipes:::step_textfeature_new(...)
    5. │   └─recipes::step(...)
    6. │     └─base::structure(...)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-textfeature.R:74:3'): check_name() is used ─────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'textfeatures'
  Backtrace:
       ▆
    1. ├─recipe(~., data = dat) %>% step_textfeature(text) at test-textfeature.R:74:3
    2. ├─textrecipes::step_textfeature(., text)
    3. │ ├─recipes::add_step(...)
    4. │ └─textrecipes:::step_textfeature_new(...)
    5. │   └─recipes::step(...)
    6. │     └─base::structure(...)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-textfeature.R:86:3'): bake method errors when needed non-standard role columns are missing ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'textfeatures'
  Backtrace:
       ▆
    1. ├─... %>% ... at test-textfeature.R:86:3
    2. ├─recipes::update_role_requirements(., role = "potato", bake = FALSE)
    3. ├─recipes::update_role(., text, new_role = "potato")
    4. ├─textrecipes::step_textfeature(., text)
    5. │ ├─recipes::add_step(...)
    6. │ └─textrecipes:::step_textfeature_new(...)
    7. │   └─recipes::step(...)
    8. │     └─base::structure(...)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-textfeature.R:101:3'): empty printing ──────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'textfeatures'
  Backtrace:
      ▆
   1. ├─textrecipes::step_textfeature(rec) at test-textfeature.R:101:3
   2. │ ├─recipes::add_step(...)
   3. │ └─textrecipes:::step_textfeature_new(...)
   4. │   └─recipes::step(...)
   5. │     └─base::structure(...)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-textfeature.R:112:3'): empty selection prep/bake is a no-op ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'textfeatures'
  Backtrace:
      ▆
   1. ├─textrecipes::step_textfeature(rec1) at test-textfeature.R:112:3
   2. │ ├─recipes::add_step(...)
   3. │ └─textrecipes:::step_textfeature_new(...)
   4. │   └─recipes::step(...)
   5. │     └─base::structure(...)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-textfeature.R:125:3'): empty selection tidy method works ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'textfeatures'
  Backtrace:
      ▆
   1. ├─textrecipes::step_textfeature(rec) at test-textfeature.R:125:3
   2. │ ├─recipes::add_step(...)
   3. │ └─textrecipes:::step_textfeature_new(...)
   4. │   └─recipes::step(...)
   5. │     └─base::structure(...)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 6 | WARN 0 | SKIP 99 | PASS 365 ]
  Error: Test failures
  Execution halted