- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-3) 14.2.0
GNU Fortran (Debian 14.2.0-3) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘crypto2/DESCRIPTION’ ... OK
- this is package ‘crypto2’ version ‘2.0.2’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘crypto2’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/2s] 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 ... [10s/12s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 examples ... [2s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [5s/9s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [5s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(crypto2)
> Sys.setenv(TZ = "UTC")
> test_check("crypto2")
> Scraping crypto info
> Processing crypto info
[ FAIL 1 | WARN 0 | SKIP 19 | PASS 1 ]
══ Skipped tests (19) ══════════════════════════════════════════════════════════
• On CRAN (19): 'test-api.R:2:3', 'test-api.R:26:3', 'test-api.R:48:3',
'test-crypto-info.R:3:3', 'test-crypto-info.R:33:3',
'test-crypto-info.R:49:3', 'test-global-quotes.R:3:3',
'test-global-quotes.R:16:3', 'test-history.R:3:3', 'test-history.R:19:3',
'test-history.R:25:3', 'test-listings.R:3:3', 'test-listings.R:15:3',
'test-listings.R:23:3', 'test-listings.R:29:3', 'test-lists.R:3:3',
'test-lists.R:11:3', 'test-lists.R:19:3', 'test-lists.R:27:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-crypto-info.R:28:3'): Downloaded data matches previously downloaded reference data for crypto_info() ──
`new_data` (`actual`) not equal to `expected_data` (`expected`).
`attr(actual, 'row.names')`: 1 2 3 4 5 6 7
`attr(expected, 'row.names')`: 1 2
actual vs expected
id name symbol slug category date_added
actual[1, ] 1 Bitcoin BTC bitcoin coin 2010-07-13
- actual[2, ] 1 Bitcoin BTC bitcoin coin 2010-07-13
- actual[3, ] 1 Bitcoin BTC bitcoin coin 2010-07-13
- actual[4, ] 1 Bitcoin BTC bitcoin coin 2010-07-13
- actual[5, ] 1 Bitcoin BTC bitcoin coin 2010-07-13
- actual[6, ] 1 Bitcoin BTC bitcoin coin 2010-07-13
actual[7, ] 2 Litecoin LTC litecoin coin 2013-04-28
`actual$id`: 1 1 1 1 1 1 2
`expected$id`: 1 2
actual$name | expected$name
[1] "Bitcoin" | "Bitcoin" [1]
[2] "Bitcoin" -
[3] "Bitcoin" -
[4] "Bitcoin" -
[5] "Bitcoin" -
[6] "Bitcoin" -
[7] "Litecoin" | "Litecoin" [2]
`actual$symbol`: "BTC" "BTC" "BTC" "BTC" "BTC" "BTC" "LTC"
`expected$symbol`: "BTC" "LTC"
actual$slug | expected$slug
[1] "bitcoin" | "bitcoin" [1]
[2] "bitcoin" -
[3] "bitcoin" -
[4] "bitcoin" -
[5] "bitcoin" -
[6] "bitcoin" -
[7] "litecoin" | "litecoin" [2]
`actual$category`: "coin" "coin" "coin" "coin" "coin" "coin" "coin"
`expected$category`: "coin" "coin"
actual$date_added | expected$date_added
[1] "2010-07-13" | "2010-07-13" [1]
[2] "2010-07-13" -
[3] "2010-07-13" -
[4] "2010-07-13" -
[5] "2010-07-13" -
[6] "2010-07-13" -
[7] "2013-04-28" | "2013-04-28" [2]
The newly downloaded data should match the reference dataset.
[ FAIL 1 | WARN 0 | SKIP 19 | PASS 1 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR