CRAN Package Check Results for Maintainer ‘Mark Buckner <mab677 at cornell.edu>’

Last updated on 2025-07-08 04:49:50 CEST.

Package ERROR OK
rlandfire 2 11

Package rlandfire

Current CRAN status: ERROR: 2, OK: 11

Version: 2.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [11s/18s] 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(rlandfire) <1b>[38;5;208m _ _ ___ _ ___| |___ ___ _| | _|_|___ ___ | _| | .'| | . | _| | _| -_| |_| |_|__,|_|_|___|_| |_|_| |___| <1b>[0mversion:2.0.0<1b>[38;5;160m NOTICE:<1b>[0m The LFPS API has been updated (LFPSv1 -> LFPSv2) and has new requirements. To review the required parameters and syntax for LFPSv2 view `?rlandfire::landfireAPIv2` Product names and availability may have changed, check `viewProducts()` <1b>[38;5;160mWorkflows built before May 2025 or with `rlandfire` versions < 2.0.0 will need to be updated.<1b>[0m > > test_check("rlandfire") [ FAIL 8 | WARN 0 | SKIP 2 | PASS 67 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-landfireAPI.R:245:3', 'test-utils.R:27:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-checkStatus.R:16:5'): `.checkStatus_internal()` returns expected ── Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire:::.checkStatus_internal(landfire_api, i = 1, max_time = 10) at test-checkStatus.R:16:5 2. └─httr2::resp_body_json(response) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) ── Error ('test-checkStatus.R:55:5'): cancelJob() returns expected response ──── <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition> Error in `httr2::req_perform(request)`: HTTP 503 Service Unavailable. Backtrace: ▆ 1. ├─testthat::expect_null(cancelJob("6f5ba39c-09f7-4f6d-97fa-543af185eb1b")) at test-checkStatus.R:55:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─rlandfire::cancelJob("6f5ba39c-09f7-4f6d-97fa-543af185eb1b") 5. └─httr2::req_perform(request) 6. └─httr2:::handle_resp(req, resp, error_call = error_call) 7. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call) 8. ├─rlang::catch_cnd(...) 9. │ ├─rlang::eval_bare(...) 10. │ ├─base::tryCatch(...) 11. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ └─base::force(expr) 15. └─rlang::abort(...) ── Error ('test-landfireAPI.R:117:5'): `landfireAPIv2()` formats priority requests correctly ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:117:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) ── Error ('test-landfireAPI.R:124:5'): `landfireAPIv2()` returns expected messages ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. ├─testthat::expect_message(...) at test-landfireAPI.R:124:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rlandfire::landfireAPIv2(products, aoi, email, priority_code = priority_code) 8. └─httr2::resp_body_json(req, simplifyVector = TRUE) 9. └─httr2::resp_check_content_type(...) 10. └─httr2:::check_content_type(...) 11. └─cli::cli_abort(...) 12. └─rlang::abort(...) ── Error ('test-landfireAPI.R:151:5'): `landfireAPIv2()` recognizes failed call ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-landfireAPI.R:151:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rlandfire::landfireAPIv2(products, aoi, email, projection, path = path) 8. └─httr2::resp_body_json(req, simplifyVector = TRUE) 9. └─httr2::resp_check_content_type(...) 10. └─httr2:::check_content_type(...) 11. └─cli::cli_abort(...) 12. └─rlang::abort(...) ── Error ('test-landfireAPI.R:166:5'): `landfireAPIv2()` edge cases ──────────── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:166:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) ── Error ('test-landfireAPI.R:187:5'): `landfireAPIv2()` works with `getAOI()` ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:187:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) ── Error ('test-landfireAPI.R:206:5'): `landfireAPIv2()` works with `getZone()` ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:206:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) [ FAIL 8 | WARN 0 | SKIP 2 | PASS 67 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.0.0
Check: tests
Result: ERROR Running 'testthat.R' [25s] 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(rlandfire) <1b>[38;5;208m _ _ ___ _ ___| |___ ___ _| | _|_|___ ___ | _| | .'| | . | _| | _| -_| |_| |_|__,|_|_|___|_| |_|_| |___| <1b>[0mversion:2.0.0<1b>[38;5;160m NOTICE:<1b>[0m The LFPS API has been updated (LFPSv1 -> LFPSv2) and has new requirements. To review the required parameters and syntax for LFPSv2 view `?rlandfire::landfireAPIv2` Product names and availability may have changed, check `viewProducts()` <1b>[38;5;160mWorkflows built before May 2025 or with `rlandfire` versions < 2.0.0 will need to be updated.<1b>[0m > > test_check("rlandfire") <0c>Job Status: Removed Job ID: be7fab41-867e-41a5-b594-c469f118bc49 Queue Position: -1 Job Messages: esriJobMessageTypeError: The requested job is too old to get status messages for. ------------------- Elapsed time: 0.1 s (Max time: 10 s) ------------------- [ FAIL 8 | WARN 0 | SKIP 2 | PASS 68 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-landfireAPI.R:245:3', 'test-utils.R:27:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-checkStatus.R:7:5'): `.checkStatus_internal()` recognizes API errors ── Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-checkStatus.R:7:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rlandfire:::.checkStatus_internal(...) 8. └─httr2::resp_body_json(response) 9. └─httr2::resp_check_content_type(...) 10. └─httr2:::check_content_type(...) 11. └─cli::cli_abort(...) 12. └─rlang::abort(...) ── Error ('test-checkStatus.R:55:5'): cancelJob() returns expected response ──── <httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition> Error in `httr2::req_perform(request)`: HTTP 503 Service Unavailable. Backtrace: ▆ 1. ├─testthat::expect_null(cancelJob("6f5ba39c-09f7-4f6d-97fa-543af185eb1b")) at test-checkStatus.R:55:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─rlandfire::cancelJob("6f5ba39c-09f7-4f6d-97fa-543af185eb1b") 5. └─httr2::req_perform(request) 6. └─httr2:::handle_resp(req, resp, error_call = error_call) 7. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call) 8. ├─rlang::catch_cnd(...) 9. │ ├─rlang::eval_bare(...) 10. │ ├─base::tryCatch(...) 11. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 14. │ └─base::force(expr) 15. └─rlang::abort(...) ── Error ('test-landfireAPI.R:117:5'): `landfireAPIv2()` formats priority requests correctly ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:117:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) ── Error ('test-landfireAPI.R:124:5'): `landfireAPIv2()` returns expected messages ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. ├─testthat::expect_message(...) at test-landfireAPI.R:124:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rlandfire::landfireAPIv2(products, aoi, email, priority_code = priority_code) 8. └─httr2::resp_body_json(req, simplifyVector = TRUE) 9. └─httr2::resp_check_content_type(...) 10. └─httr2:::check_content_type(...) 11. └─cli::cli_abort(...) 12. └─rlang::abort(...) ── Error ('test-landfireAPI.R:151:5'): `landfireAPIv2()` recognizes failed call ── Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-landfireAPI.R:151:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rlandfire::landfireAPIv2(products, aoi, email, projection, path = path) 8. └─rlandfire:::.checkStatus_internal(...) 9. └─httr2::resp_body_json(response) 10. └─httr2::resp_check_content_type(...) 11. └─httr2:::check_content_type(...) 12. └─cli::cli_abort(...) 13. └─rlang::abort(...) ── Error ('test-landfireAPI.R:166:5'): `landfireAPIv2()` edge cases ──────────── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:166:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) ── Error ('test-landfireAPI.R:187:5'): `landfireAPIv2()` works with `getAOI()` ── Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:187:5 2. └─rlandfire:::.checkStatus_internal(...) 3. └─httr2::resp_body_json(response) 4. └─httr2::resp_check_content_type(...) 5. └─httr2:::check_content_type(...) 6. └─cli::cli_abort(...) 7. └─rlang::abort(...) ── Error ('test-landfireAPI.R:206:5'): `landfireAPIv2()` works with `getZone()` ── Error in `httr2::resp_body_json(req, simplifyVector = TRUE)`: Unexpected content type "text/html". * Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─rlandfire::landfireAPIv2(...) at test-landfireAPI.R:206:5 2. └─httr2::resp_body_json(req, simplifyVector = TRUE) 3. └─httr2::resp_check_content_type(...) 4. └─httr2:::check_content_type(...) 5. └─cli::cli_abort(...) 6. └─rlang::abort(...) [ FAIL 8 | WARN 0 | SKIP 2 | PASS 68 ] Error: Test failures Execution halted Flavor: r-oldrel-windows-x86_64