- using R Under development (unstable) (2023-01-21 r83656)
- using platform: x86_64-pc-linux-gnu (64-bit)
- R was compiled by
Debian clang version 15.0.6
GNU Fortran (Debian 12.2.0-14) 12.2.0
- running under: Debian GNU/Linux bookworm/sid
- using session charset: UTF-8
- checking for file ‘polished/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘polished’ version ‘0.7.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 ‘polished’ can be installed ... OK
- 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [3s/4s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/4s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/4s] OK
- checking loading without being on the library search path ... [3s/4s] 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 ... [21s/29s] OK
- checking Rd files ... [1s/1s] 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 ... [3s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/24s] ERROR
Running ‘testthat.R’ [6s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(polished)
> library(httr)
>
> test_check("polished")
Polished API request failed
Status Code: 400
Polished API request failed
Status Code: 400
Polished API request failed
Status Code: 500
Polished API request failed
Status Code: 400
Polished API request failed
Status Code: 400
Polished API request failed
Status Code: 400
Polished API request failed
Status Code: 405
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-api-03-app-users.R:27'): a user can be added/invited to an app - by email ──
Error: argument "app_uid" is missing, with no default
Backtrace:
▆
1. └─polished::add_app_user(app_uid = test_app$uid, email = test_user$email) at test-api-03-app-users.R:27:2
2. └─polished::polished_api_res(resp)
── Failure ('test-api-03-app-users.R:70'): can get an app user - by email ──────
nrow(api_res$content) (`actual`) not equal to 1L (`expected`).
`actual`: 0
`expected`: 1
── Failure ('test-api-03-app-users.R:80'): can get an app user - by user_uid ───
nrow(api_res$content) (`actual`) not equal to 1L (`expected`).
`actual`: 0
`expected`: 1
── Error ('test-api-03-app-users.R:105'): can update a user ────────────────────
Error: `user_uid`, `app_uid`, and `is_admin` all cannot be `NULL`
Backtrace:
▆
1. └─polished::update_app_user(...) at test-api-03-app-users.R:105:2
2. └─polished::polished_api_res(resp)
── Error ('test-api-03-app-users.R:115'): can delete a user ────────────────────
Error: both `user_uid` and `app_uid` cannot be `NULL`
Backtrace:
▆
1. └─polished::delete_app_user(user_uid = test_user$uid, app_uid = test_app$uid) at test-api-03-app-users.R:115:2
2. └─polished::polished_api_res(resp)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [4s/6s] OK
- checking PDF version of manual ... [7s/11s] OK
- checking HTML version of manual ... [2s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR