- using R version 4.4.1 (2024-06-14 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'rhymer/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'rhymer' version '1.2.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'rhymer' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s] OK
- checking loading without being on the library search path ... [0s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [2s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [11s] ERROR
Running examples in 'rhymer-Ex.R' failed
The error most likely occurred in:
> ### Name: datamuse_api
> ### Title: Call Datamuse API and return data.
> ### Aliases: datamuse_api
>
> ### ** Examples
>
> datamuse_api("/words?rel_rhy=test")
Error: Datamuse API request failed [504]
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [93s] ERROR
Running 'testthat.R' [93s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(rhymer)
>
> test_check("rhymer")
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_rhymer.R:8:3'): get_rhyme returns dataframe of words ───────────
Error: Datamuse API request failed [504]
Backtrace:
▆
1. └─rhymer::get_rhyme(WORD_TO_TEST, limit = 10) at test_rhymer.R:8:3
2. └─rhymer::get_content(...)
3. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:19:3'): get_rhyme with syllable argument works ────────
Error: Datamuse API request failed [504]
Backtrace:
▆
1. └─rhymer::get_rhyme(WORD_TO_TEST, limit = 10, num_syl = 3) at test_rhymer.R:19:3
2. └─rhymer::get_content(...)
3. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:31:3'): get_means_like returns dataframe of words ─────
Error: Datamuse API request failed [504]
Backtrace:
▆
1. └─rhymer::get_means_like(WORD_TO_TEST, limit = 10) at test_rhymer.R:31:3
2. └─rhymer::get_content(...)
3. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:42:3'): get_sounds_like returns dataframe of words ────
Error: Datamuse API request failed [504]
Backtrace:
▆
1. └─rhymer::get_sounds_like(WORD_TO_TEST, limit = 10) at test_rhymer.R:42:3
2. └─rhymer::get_content(...)
3. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:58:3'): get_spelled_like returns dataframe of words ───
Error: Datamuse API request failed [504]
Backtrace:
▆
1. └─rhymer::get_spelled_like(WORD_TO_TEST, limit = 10) at test_rhymer.R:58:3
2. └─rhymer::get_content(...)
3. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:69:3'): get_other_related returns dataframe of words ──
Error: Datamuse API request failed [504]
Backtrace:
▆
1. └─rhymer::get_other_related(WORD_TO_TEST, code = "spc", limit = 10) at test_rhymer.R:69:3
2. └─rhymer::get_content(...)
3. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:84:3'): get_content sends warning if no results ───────
Error: Datamuse API request failed [504]
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_rhymer.R:84:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─rhymer::get_content("words?rel_rhy=giberishhh")
7. └─rhymer::datamuse_api(full_path, limit)
── Error ('test_rhymer.R:88:3'): return_content returns correct type ───────────
Error: Datamuse API request failed [504]
Backtrace:
▆
1. ├─testthat::expect_is(...) at test_rhymer.R:88:3
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 = "df")
5. └─rhymer::datamuse_api(full_path, limit)
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 1 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [12s] ERROR
Error(s) in re-building vignettes:
--- re-building 'intro-to-rhymer.Rmd' using rmarkdown
Quitting from lines 37-38 [unnamed-chunk-2] (intro-to-rhymer.Rmd)
Error: processing vignette 'intro-to-rhymer.Rmd' failed with diagnostics:
Datamuse API request failed [504]
--- failed re-building 'intro-to-rhymer.Rmd'
SUMMARY: processing the following file failed:
'intro-to-rhymer.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [1s] OK
- DONE
Status: 3 ERRORs