* using log directory 'd:/Rcompile/CRANpkg/local/4.4/rlandfire.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'rlandfire/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'rlandfire' version '2.0.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'rlandfire' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [0s] 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 ... [4s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [25s] 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)  _ _ ___ _ ___| |___ ___ _| | _|_|___ ___ | _| | .'| | . | _| | _| -_| |_| |_|__,|_|_|___|_| |_|_| |___| version:2.0.0 NOTICE: 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()` Workflows built before May 2025 or with `rlandfire` versions < 2.0.0 will need to be updated. > > test_check("rlandfire") 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 ──── 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [13s] OK * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR