- using R Under development (unstable) (2024-12-18 r87448)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.5 (1)
Debian flang-new version 19.1.5 (1)
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘epidatr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘epidatr’ 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 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 ‘epidatr’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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/14s] OK
- checking Rd files ... [1s/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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/10s] ERROR
Running ‘testthat.R’ [6s/10s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(epidatr)
>
> test_check("epidatr")
[ FAIL 2 | WARN 1 | SKIP 2 | PASS 228 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• empty test (2): 'test-endpoints.R:1:1', 'test-utils.R:24:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-covidcast.R:2:3'): covidcast ───────────────────────────────────
<http_500/http_error/error/condition>
Error in `epidatr::covidcast_epidata()`: Internal Server Error (HTTP 500). Failed to fetch data from API : The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application..
Backtrace:
▆
1. └─epidatr::covidcast_epidata() at test-covidcast.R:2:3
2. └─httr::stop_for_status(response, task = msg)
── Error ('test-covidcast.R:33:3'): name completion ────────────────────────────
<http_500/http_error/error/condition>
Error in `epidatr::covidcast_epidata()`: Internal Server Error (HTTP 500). Failed to fetch data from API : The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application..
Backtrace:
▆
1. └─epidatr::covidcast_epidata() at test-covidcast.R:33:3
2. └─httr::stop_for_status(response, task = msg)
[ FAIL 2 | WARN 1 | SKIP 2 | PASS 228 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [12s/22s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘epidatr.Rmd’ using rmarkdown
Quitting from lines 77-91 [unnamed-chunk-2] (epidatr.Rmd)
Error: processing vignette 'epidatr.Rmd' failed with diagnostics:
epidata error: `database error: (builtins.AttributeError) 'NoneType'
object has no attribute 'cursor' [SQL: SELECT t.geo_value, t.signal,
t.time_value, t.direction, t.issue, t.lag, t.missing_value, t.missing_stderr,
t.missing_sample_size, t.value, t.stderr, t.sample_size FROM epimetric_latest_v
t WHERE ((t.source = %s AND (t.signal = %s))) AND ((t.geo_type = %s AND
(t.geo_value = %s))) AND ((t.time_type = %s AND (t.time_value BETWEEN %s AND
%s))) ORDER BY t.signal ASC, t.time_value ASC, t.geo_value ASC, t.issue ASC
LIMIT 3651] [parameters: [{'source_0t': 'fb-survey', 'source_0t_0':
'smoothed_cli', 'geo_type_0t': 'nation', 'geo_type_0t_0': 'us', 'time_type_0t':
'day', 'time_type_0t_0': 20210105, 'time_type_0t_0_2': 20210410}]]`
--- failed re-building ‘epidatr.Rmd’
--- re-building ‘signal-discovery.Rmd’ using rmarkdown
--- finished re-building ‘signal-discovery.Rmd’
--- re-building ‘versioned-data.Rmd’ using rmarkdown
--- finished re-building ‘versioned-data.Rmd’
SUMMARY: processing the following file failed:
‘epidatr.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs