Skip to content

CRAN checks fail due to owid_get_catalog() #5

@christophscheuch

Description

@christophscheuch
checking examples with --run-donttest ... ERROR
Running examples in ‘owidapi-Ex.R’ failed
The error most likely occurred in:

> ### Name: owid_get_catalog
> ### Title: Download data catalog of Our World in Data
> ### Aliases: owid_get_catalog
> 
> ### ** Examples
> 
> ## Don't show: 
> if (curl::has_internet()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ ## No test: 
+ # Download a full table
+ owid_get_catalog()
+ ## End(No test)
+ ## Don't show: 
+ }) # examplesIf
> owid_get_catalog()
Error in `owid_get_catalog()`:
! Failed to retrieve data from Our World in Data.
ℹ Error message: HTTP 502 Bad Gateway.
ℹ Check your internet connection and the dataset or URL.
Backtrace:
     ▆
  1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
  2. │ └─base::source(...)
  3. │   ├─base::withVisible(eval(ei, envir))
  4. │   └─base::eval(ei, envir)
  5. │     └─base::eval(ei, envir)
  6. └─owidapi::owid_get_catalog()
  7.   └─base::tryCatch(...)
  8.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10.         └─value[[3L]](cond)
 11.           └─cli::cli_abort(...)
 12.             └─rlang::abort(...)
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘testthat.R’
 OK
* checking PDF version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* checking for new files in some other directories ... OK
* DONE

Status: 1 ERROR
See
  ‘/data/blackswan/ripley/R/packages/tests-devel/owidapi.Rcheck/00check.log’
for details.

Command exited with non-zero status 1
Time 1:26.03, 43.17 + 38.78

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions