- using R Under development (unstable) (2024-12-20 r87452)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-8) 14.2.0
GNU Fortran (Debian 14.2.0-8) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘databraryr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘databraryr’ version ‘0.6.6’
- 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 ‘databraryr’ 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/1s] OK
- checking whether startup messages can be suppressed ... [0s/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 ... [6s/8s] OK
- checking Rd files ... [0s/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 ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [10s/16s] ERROR
Running ‘testthat.R’ [10s/15s]
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(databraryr)
Welcome to the databraryr package.
>
> test_check("databraryr")
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
NULL request object. Will generate default.
Not logged in. Only public information will be returned.
Retrieving assets from session id 9807.
Cannot access requested resource on Databrary. Exiting.
NULL request object. Will generate default.
Not logged in. Only public information will be returned.
Retrieving assets from session id 9807.
Cannot access requested resource on Databrary. Exiting.
Not logged in. Only public information will be returned.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
Cannot access requested resource on Databrary. Exiting.
[ FAIL 24 | WARN 0 | SKIP 0 | PASS 576 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-assign_constants.R:2:3'): assign_constants returns list ──────
"list" %in% class(assign_constants()) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-download_session_asset.R:15:3'): download_session_asset rejects bad input parameters ──
`download_session_asset(file_name = 3)` did not throw the expected error.
── Failure ('test-download_session_asset.R:16:3'): download_session_asset rejects bad input parameters ──
`download_session_asset(file_name = list(a = 1, b = 2))` did not throw the expected error.
── Failure ('test-download_session_asset.R:17:3'): download_session_asset rejects bad input parameters ──
`download_session_asset(file_name = TRUE)` did not throw the expected error.
── Failure ('test-download_session_zip.R:28:3'): download_session_zip returns string ──
is.character(download_session_zip()) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-download_volume_zip.R:24:3'): download_volume_zip returns string ──
is.character(download_volume_zip()) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_db_stats.R:3:3'): get_db_stats returns a data.frame by default ──
"data.frame" %in% class(get_db_stats()) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Error ('test-get_session_by_name.R:3:3'): get_session_by_name returns a list or is NULL. ──
<assertError/simpleError/error/condition>
Error: volume_json is not a list
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-get_session_by_name.R:3:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─databraryr::get_session_by_name()
5. └─databraryr (local) extract_session_metadata(volume_json)
6. └─assertthat::assert_that(is.list(volume_json))
── Failure ('test-list_session_assets.R:14:3'): list_session_assets rejects bad input parameters ──
`list_session_assets(vb = -1)` did not throw the expected error.
── Failure ('test-list_session_assets.R:15:3'): list_session_assets rejects bad input parameters ──
`list_session_assets(vb = 3)` did not throw the expected error.
── Failure ('test-list_volume_sessions.R:3:3'): list_volume_sessions returns data.frame given valid vol_id ──
"data.frame" %in% class(list_volume_sessions()) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Error ('test-logout_db.R:9:3'): logout_db returns logical ───────────────────
<httr2_http_403/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(rq)`: HTTP 403 Forbidden.
Backtrace:
▆
1. ├─testthat::expect_true(is.logical(logout_db())) at test-logout_db.R:9:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─databraryr::logout_db()
5. └─httr2::req_perform(rq)
6. └─httr2:::handle_resp(req, resp, error_call = error_call)
7. └─httr2:::resp_abort(resp, req, body, call = error_call)
8. └─rlang::abort(...)
── Error ('test-logout_db.R:13:1'): (code run outside of `test_that()`) ────────
<httr2_http_403/httr2_http/httr2_error/rlang_error/error/condition>
Error in `httr2::req_perform(rq)`: HTTP 403 Forbidden.
Backtrace:
▆
1. └─databraryr::logout_db() at test-logout_db.R:13:1
2. └─httr2::req_perform(rq)
3. └─httr2:::handle_resp(req, resp, error_call = error_call)
4. └─httr2:::resp_abort(resp, req, body, call = error_call)
5. └─rlang::abort(...)
── Failure ('test-search_for_keywords.R:3:3'): search_for_keywords returns list ──
class(search_for_keywords()) == "list" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-search_for_tags.R:3:3'): search_for_tags returns character ───
"character" %in% class(search_for_tags()) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:3:3'): get_file_duration returns an integer array ────
class(get_file_duration()) == "integer" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:4:3'): get_file_duration returns an integer array ────
length(get_file_duration()) == 1 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:19:3'): get_asset_segment_range returns an integer array ──
class(get_asset_segment_range()) == "integer" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:20:3'): get_asset_segment_range returns an integer array ──
length(get_asset_segment_range()) == 2 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:43:3'): get_permission_levels returns a character array ──
class(get_permission_levels()) == "character" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:44:3'): get_permission_levels returns a character array ──
length(get_permission_levels()) == 6 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:55:3'): get_release_levels returns a character array ──
class(get_release_levels()) == "character" is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-utils.R:56:3'): get_release_levels returns a character array ──
length(get_release_levels()) == 4 is not TRUE
`actual`: FALSE
`expected`: TRUE
── Error ('test-utils.R:68:3'): get_supported_file_types returns data.frame ────
Error in `UseMethod("rename")`: no applicable method for 'rename' applied to an object of class "NULL"
Backtrace:
▆
1. ├─testthat::expect_true(is.data.frame(get_supported_file_types())) at test-utils.R:68:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::is.data.frame(get_supported_file_types())
5. └─databraryr::get_supported_file_types()
6. └─dplyr::rename(ft, asset_type = "name", asset_type_id = "id")
[ FAIL 24 | WARN 0 | SKIP 0 | PASS 576 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/8s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘accessing-data.Rmd’ using rmarkdown
Quitting from lines 115-116 [unnamed-chunk-11] (accessing-data.Rmd)
Error: processing vignette 'accessing-data.Rmd' failed with diagnostics:
object 'format_name' not found
--- failed re-building ‘accessing-data.Rmd’
--- re-building ‘authorized-users.Rmd’ using rmarkdown
--- finished re-building ‘authorized-users.Rmd’
--- re-building ‘databrary.Rmd’ using rmarkdown
--- finished re-building ‘databrary.Rmd’
SUMMARY: processing the following file failed:
‘accessing-data.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs