CRAN Package Check Results for Package octopusR

Last updated on 2024-11-09 02:48:55 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.1 3.63 31.60 35.23 OK
r-devel-linux-x86_64-debian-gcc 1.0.1 2.70 23.78 26.48 OK
r-devel-linux-x86_64-fedora-clang 1.0.1 60.44 OK
r-devel-linux-x86_64-fedora-gcc 1.0.1 55.25 OK
r-devel-windows-x86_64 1.0.1 5.00 97.00 102.00 ERROR
r-patched-linux-x86_64 1.0.1 3.36 30.12 33.48 OK
r-release-linux-x86_64 1.0.1 2.17 30.46 32.63 OK
r-release-macos-arm64 1.0.1 29.00 OK
r-release-macos-x86_64 1.0.1 32.00 OK
r-release-windows-x86_64 1.0.1 4.00 52.00 56.00 OK
r-oldrel-macos-arm64 1.0.1 104.00 OK
r-oldrel-macos-x86_64 1.0.1 36.00 OK
r-oldrel-windows-x86_64 1.0.1 5.00 56.00 61.00 OK

Check Details

Version: 1.0.1
Check: examples
Result: ERROR Running examples in 'octopusR-Ex.R' failed The error most likely occurred in: > ### Name: get_products > ### Title: Return a list of energy products > ### Aliases: get_products > > ### ** Examples > > get_products(is_green = TRUE) Error in `httr2::req_perform()`: ! Failed to parse error body with method defined in `req_error()`. Caused by error in `httr2::resp_body_json()`: ! Unexpected content type "text/html". • Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─octopusR::get_products(is_green = TRUE) 2. └─octopusR:::octopus_api(path = path, query = query) 3. └─httr2::req_perform(httr2::req_error(httr2::req_throttle(req, 5L), body = octopus_error_body)) 4. └─httr2:::handle_resp(req, resp, error_call = error_call) 5. └─httr2:::error_body(req, resp, error_call) 6. ├─rlang::try_fetch(...) 7. │ ├─base::tryCatch(...) 8. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 9. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 11. │ └─base::withCallingHandlers(...) 12. └─httr2:::req_policy_call(req, "error_body", list(resp), default = NULL) 13. ├─rlang::exec(req$policies[[name]], !!!args) 14. └─octopusR (local) `<fn>`(`<httr2_rs>`) 15. └─httr2::resp_body_json(resp) 16. └─httr2::resp_check_content_type(...) 17. └─httr2:::check_content_type(...) 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) Execution halted Flavor: r-devel-windows-x86_64