* using log directory 'd:/RCompile/CRANincoming/R-devel/megamation.Rcheck' * using R Under development (unstable) (2023-11-16 r85542 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'megamation/DESCRIPTION' ... OK * this is package 'megamation' version '0.2.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Adam Sadowski ' New submission Possibly misspelled words in DESCRIPTION: Megamation (17:18) programmatically (15:24) Package has a VignetteBuilder field but no prebuilt vignette index. * 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 serialization versions ... OK * checking whether package 'megamation' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 examples ... ERROR Running examples in 'megamation-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mm_get > ### Title: Get data > ### Aliases: mm_get > > ### ** Examples > > ## Don't show: > if (megamation:::mm_has_creds()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # Get all work orders from Jan. 2023 containing trades ADMIN and IT: + + # First create a Date-type vector + jan_2023 <- seq.Date( + as.Date("2023-01-01"), + as.Date("2023-01-31"), + by = "day" + ) + + # Then prefix the trade values with the "containing" modifier "[]" + # since trade is a list column in the work order table + admin_and_it <- c("[]ADMIN", "[]IT") + + mm_get("workorder", date = jan_2023, trade = admin_and_it) + ## Don't show: + }) # examplesIf > jan_2023 <- seq.Date(as.Date("2023-01-01"), as.Date("2023-01-31"), by = "day") > admin_and_it <- c("[]ADMIN", "[]IT") > mm_get("workorder", date = jan_2023, trade = admin_and_it) Error in `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. ├─(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. └─megamation::mm_get("workorder", date = jan_2023, trade = admin_and_it) 7. └─megamation:::mm_req_perform(...) 8. └─httr2::req_perform_iterative(req, next_req = mm_next_req) 9. ├─base::tryCatch(...) 10. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 11. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 13. ├─rlang::try_fetch(req_perform(req, path = get_path(i)), httr2_error = httr2_error) 14. │ └─base::withCallingHandlers(...) 15. └─httr2::req_perform(req, path = get_path(i)) 16. └─httr2:::handle_resp(req, resp, error_call = error_call) 17. └─httr2:::error_body(req, resp, error_call) 18. ├─rlang::try_fetch(...) 19. │ ├─base::tryCatch(...) 20. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 21. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 22. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 23. │ └─base::withCallingHandlers(...) 24. └─httr2:::req_policy_call(req, "error_body", list(resp), default = NULL) 25. ├─rlang::exec(req$policies[[name]], !!!args) 26. └─megamation (local) ``(``) 27. ├─purrr::pluck(httr2::resp_body_json(resp), "detail") 28. │ └─purrr:::pluck_raw(.x, list2(...), .default = .default) 29. └─httr2::resp_body_json(resp) 30. └─httr2::resp_check_content_type(...) 31. └─httr2:::check_content_type(...) 32. └─cli::cli_abort(...) 33. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... OK Running 'testthat.R' * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE