- using R Under development (unstable) (2025-01-20 r87609)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-12) 14.2.0
GNU Fortran (Debian 14.2.0-12) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘chattr/DESCRIPTION’ ... OK
- this is package ‘chattr’ version ‘0.2.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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘chattr’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 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 ... [7s/8s] OK
- checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/8s] ERROR
Running ‘testthat.R’ [5s/7s]
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(chattr)
>
> test_check("chattr")
-- chattr
* Provider: OpenAI - Chat Completions
* Path/URL: https://api.openai.com/v1/chat/completions
* Model: gpt-4
* Label: GPT 4 (OpenAI)
[ FAIL 1 | WARN 0 | SKIP 33 | PASS 41 ]
══ Skipped tests (33) ══════════════════════════════════════════════════════════
• On CRAN (33): 'test-app-server.R:2:3', 'test-app-server.R:20:3',
'test-app-ui.R:2:3', 'test-app-ui.R:12:3', 'test-app-ui.R:17:3',
'test-app-ui.R:24:3', 'test-backend-databricks.R:12:3',
'test-backend-databricks.R:90:3', 'test-backend-llamagpt.R:14:3',
'test-backend-llamagpt.R:48:3', 'test-backend-llamagpt.R:64:3',
'test-backend-llamagpt.R:68:3', 'test-backend-openai.R:12:3',
'test-backend-openai.R:89:3', 'test-backend-openai.R:121:3',
'test-backend-openai.R:156:3', 'test-backend-openai.R:174:3',
'test-ch-defaults-save.R:3:3', 'test-ch_context.R:2:3',
'test-ch_context.R:12:3', 'test-ch_defaults.R:2:3', 'test-ch_defaults.R:9:3',
'test-ch_defaults.R:19:3', 'test-chattr-test.R:4:3',
'test-chattr-test.R:13:3', 'test-chattr-test.R:22:3',
'test-chattr-use.R:7:7', 'test-chattr-use.R:14:3', 'test-chattr-use.R:33:3',
'test-chattr.R:11:3', 'test-chattr.R:15:3', 'test-chattr.R:26:3',
'test-utils.R:6:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-backend-databricks.R:36:7'): Completion function works ─────────
Error in `curl::curl_parse_url(url, baseurl = base_url, decode = FALSE)`: Failed to parse URL: Bad scheme
Backtrace:
▆
1. ├─withr::with_envvar(...) at test-backend-databricks.R:22:3
2. │ └─base::force(code)
3. ├─testthat::expect_null(...) at test-backend-databricks.R:36:7
4. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
5. │ └─rlang::eval_bare(expr, quo_get_env(quo))
6. └─chattr:::ch_databricks_complete(...)
7. └─httr2::url_parse(host)
8. └─curl::curl_parse_url(url, baseurl = base_url, decode = FALSE)
[ FAIL 1 | WARN 0 | SKIP 33 | PASS 41 ]
Deleting unused snapshots:
• app-server/001.json
• app-server/002.json
• app-server/003.json
• app-server/004.json
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [13s/18s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR