Last updated on 2024-12-22 12:49:33 CET.
Package | ERROR | OK |
---|---|---|
epidatr | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.2.0
Check: tests
Result: 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
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.2.0
Check: re-building of vignette outputs
Result: 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
Flavor: r-devel-linux-x86_64-debian-clang