* using log directory ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.4/dhis2r.Rcheck’ * using R version 4.4.0 (2024-04-24) * using platform: x86_64-apple-darwin20 * R was compiled by Apple clang version 14.0.0 (clang-1400.0.29.202) GNU Fortran (GCC) 12.2.0 * running under: macOS Ventura 13.3.1 * using session charset: UTF-8 * checking for file ‘dhis2r/DESCRIPTION’ ... OK * this is package ‘dhis2r’ version ‘0.1.1’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘dhis2r’ can be installed ... [3s/6s] OK See 'https://www.r-project.org/nosvn/R.check/r-release-macos-x86_64/dhis2r-00install.html' for details. * 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/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] 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 ... [2s/3s] OK * checking Rd files ... [0s/0s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [0s/0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [1s/1s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [2s/14s] ERROR Running ‘testthat.R’ [2s/14s] Running the tests in ‘tests/testthat.R’ failed. Last 13 lines of output: Backtrace: ▆ 1. ├─testthat::expect_type(...) at test-connect.R:32:3 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─dhis2_play_connection$get_metadata_fields(endpoint = "dataElements") 5. └─httr2::resp_body_json(reponse, simplifyVector = TRUE) 6. └─httr2::resp_check_content_type(...) 7. └─httr2:::check_content_type(...) 8. └─cli::cli_abort(...) 9. └─rlang::abort(...) [ FAIL 4 | WARN 0 | SKIP 0 | PASS 2 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [10s/13s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘dhis2r.Rmd’ using rmarkdown Quitting from lines 35-37 [unnamed-chunk-3] (dhis2r.Rmd) Error: processing vignette 'dhis2r.Rmd' failed with diagnostics: Unexpected content type "text/html". • Expecting type "application/json" or suffix "json". --- failed re-building ‘dhis2r.Rmd’ SUMMARY: processing the following file failed: ‘dhis2r.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [6s/6s] OK * DONE Status: 2 ERRORs * using check arguments '--no-clean-on-error ' * elapsed time (check, wall clock): 1:14