Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rhymer)
  > 
  > test_check("rhymer")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_rhymer.R:10:3): get_rhyme returns dataframe of words ──────────
  `rhyme_data` inherits from `'list'` not `'character'`.
  ── Failure (test_rhymer.R:11:3): get_rhyme returns dataframe of words ──────────
  nrow(rhyme_data) not equal to 10.
  target is NULL, current is numeric
  ── Failure (test_rhymer.R:12:3): get_rhyme returns dataframe of words ──────────
  "best" %in% rhyme_data$word is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_rhymer.R:13:3): get_rhyme returns dataframe of words ──────────
  Names of `rhyme_data` ('') don't match 'word', 'score', 'numSyllables'
  ── Error (test_rhymer.R:19:3): get_rhyme with syllable argument works ──────────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. └─rhymer::get_rhyme(WORD_TO_TEST, limit = 10, num_syl = 3) test_rhymer.R:19:2
  ── Failure (test_rhymer.R:71:3): get_other_related returns dataframe of words ──
  `other_related_data` inherits from `'list'` not `'character'`.
  ── Failure (test_rhymer.R:72:3): get_other_related returns dataframe of words ──
  nrow(other_related_data) not equal to 10.
  target is NULL, current is numeric
  ── Failure (test_rhymer.R:73:3): get_other_related returns dataframe of words ──
  "take" %in% other_related_data$word is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_rhymer.R:74:3): get_other_related returns dataframe of words ──
  Names of `other_related_data` ('') don't match 'word', 'score'
  ── Failure (test_rhymer.R:88:3): return_content returns correct type ───────────
  get_content("words?rel_rhy=test", return_type = "df") inherits from `'list'` not `'character'`.
  ── Failure (test_rhymer.R:89:3): return_content returns correct type ───────────
  get_content("words?rel_rhy=test", return_type = "word") inherits from `'NULL'` not `'character'`.
  ── Error (test_rhymer.R:90:3): return_content returns correct type ─────────────
  Error: invalid first argument
  Backtrace:
      █
   1. ├─testthat::expect_is(...) test_rhymer.R:90:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rhymer::get_content("words?rel_rhy=test", return_type = "random_word")
   5.   └─rhymer::return_content(x$content, return_type)
   6.     └─base::sample(api_content$word, 1)
   7.       └─base::sample.int(length(x), size, replace, prob)
  
  [ FAIL 12 | WARN 6 | SKIP 0 | PASS 18 ]
  Error: Test failures
  Execution halted