CRAN Package Check Results for Package rtoot

Last updated on 2025-07-24 23:49:37 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.5 2.66 54.42 57.08 ERROR
r-devel-linux-x86_64-debian-gcc 0.3.5 2.42 44.24 46.66 ERROR
r-devel-linux-x86_64-fedora-clang 0.3.5 105.67 ERROR
r-devel-linux-x86_64-fedora-gcc 0.3.5 118.90 ERROR
r-devel-windows-x86_64 0.3.5 5.00 92.00 97.00 ERROR
r-patched-linux-x86_64 0.3.5 3.60 50.62 54.22 ERROR
r-release-linux-x86_64 0.3.5 2.91 63.34 66.25 OK
r-release-macos-arm64 0.3.5 51.00 OK
r-release-macos-x86_64 0.3.5 89.00 OK
r-release-windows-x86_64 0.3.5 5.00 85.00 90.00 ERROR
r-oldrel-macos-arm64 0.3.5 52.00 OK
r-oldrel-macos-x86_64 0.3.6 89.00 OK
r-oldrel-windows-x86_64 0.3.5 6.00 96.00 102.00 ERROR

Check Details

Version: 0.3.5
Check: tests
Result: ERROR Running ‘testthat.R’ [18s/33s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-auth_process_created_token.R:43:5'): verify ────────────────── `... <- NULL` did not throw the expected error. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_process_created_token.R:42:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_error(...) at test-auth_process_created_token.R:43:5 ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── Error in `httr::content(auth2)$access_token`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. ├─rtoot:::process_created_token(...) 13. │ └─rtoot:::save_auth_rtoot(token, name, path) 14. │ └─rtoot:::is_auth_rtoot(token) 15. └─rtoot:::create_token(client, type = type, browser = browser) ── Failure ('test-get_account.R:12:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is a logical vector (NA) ── Failure ('test-get_account.R:18:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is NULL ── Failure ('test-get_account_auth.R:20:3'): get_account_followers ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:32:3'): get_account_following ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:44:3'): get_account_bookmarks ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:56:3'): get_account_favourites ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:69:3'): get_account_blocks ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:82:3'): get_account_mutes ───────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:11:3'): get_account_statuses ────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:26:3'): get_account_statuses, limit ─── nrow(x) > 40 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:14:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:30:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:39:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:47:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:48:3'): get_context ──────────────────────────── nrow(x$descendants) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:55:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:11:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:22:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:28:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_poll.R:10:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('105976') ── Failure ('test-get_poll.R:21:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_poll.R:27:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_reblogged_by.R:11:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:22:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:28:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_status.R:11:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:17:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is NULL `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:23:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_status.R:29:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_timeline_hashtag.R:9:3'): get_timeline_hashtag ─────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:14:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:23:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:28:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:9:3'): get_timeline_home ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:19:3'): get_timeline_home ──────────────── nrow(y) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_list.R:9:3'): get_timeline_list ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:9:3'): get_timeline_public ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:18:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:24:3'): get_timeline_public ──────────── length(unique(sapply(x$uri, function(uri) httr::parse_url(uri)$hostname))) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_timeline_public.R:28:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-handle_params.R:42:3'): integration test ───────────────────── nrow(output) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Failure ('test-handle_params.R:43:3'): integration test ───────────────────── length(unique(output$id)) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Error ('test-instances.R:10:5'): get_fedi_instances ───────────────────────── Error in `httr::content(request_results)$instances`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:9:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_fedi_instances(token = fake_token2) at test-instances.R:10:5 4. └─dplyr::bind_rows(httr::content(request_results)$instances) 5. └─rlang::list2(...) ── Error ('test-instances.R:21:3'): get_instance_general ─────────────────────── Error in `x$uri`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. └─testthat::expect_equal(x$uri, "mastodon.hk") at test-instances.R:21:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-instances.R:32:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:36:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:41:5'): get_instance_activity ────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:40:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_activity(instance = "social.tchncs.de", token = fake_token) at test-instances.R:41:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:54:5'): get_instance_emoji ───────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:53:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_emoji(instance = "social.tchncs.de", token = fake_token) at test-instances.R:54:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-instances.R:70:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:79:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:84:5'): get_instance_trends ──────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:83:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_trends(instance = "social.tchncs.de", token = fake_token) at test-instances.R:84:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:97:5'): get_instance_rules ───────────────────────── Error in `get_instance_general(instance = instance, token = token, anonymous = anonymous)$rules`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:96:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_rules(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:97:5 ── Error ('test-instances.R:105:5'): get_instance_blocks ─────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:104:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_blocks(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:105:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-lists.R:9:3'): get_list_accounts ───────────────────────────── nrow(x) == 2 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-lists.R:17:3'): get_lists ──────────────────────────────────── nrow(x) == 1 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:17:3'): process_request: n > page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:29:3'): process_request: n < page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:41:3'): process_request: n == page_size, and page_size is lower than API limit ── nrow(x) == n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-rtoot.R:12:3'): rtoot examples ─────────────────────────────── length(x1) (`actual`) not equal to 2 (`expected`). `actual`: 0.0 `expected`: 2.0 ── Failure ('test-rtoot.R:13:3'): rtoot examples ─────────────────────────────── length(x2) (`actual`) not equal to 3 (`expected`). `actual`: 0.0 `expected`: 3.0 ── Failure ('test-search_accounts.R:10:3'): search_accounts ──────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.3.5
Check: tests
Result: ERROR Running ‘testthat.R’ [15s/27s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr | | | 0% | |================== | 25% You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "auth_setup_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. └─rtoot:::get_client(instance = instance) 13. └─httr::POST(...) 14. └─httr:::request_perform(req, hu$handle$handle) 15. └─httr:::perform_callback("request", req = req) 16. └─vcr (local) callback(...) 17. └─RequestHandlerHttr$new(req)$handle() 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) ── Error ('test-lists.R:24:5'): post_list_create ─────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_create". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:23:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:24:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_create(title = "rtoot test", token = fake_token) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-lists.R:30:5'): post_list_accounts ───────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_accounts". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:29:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:30:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_accounts(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:20:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_default". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:19:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:20:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_media". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_spoiler_text". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_sensitive". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_visibility". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_language". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:59:5'): post_user ───────────────────────────────────── `post_user("5358", action = "pin", token = fake_token, verbose = FALSE)` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_user_pin". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:57:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:59:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_user(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:69:5'): post_toot, verbose ────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_toot_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:68:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:69:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:79:5'): post_user silent ──────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_user_pin_silent". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:77:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-post.R:79:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::post_user(...) 12. └─httr::POST(...) 13. └─httr:::request_perform(req, hu$handle$handle) 14. └─httr:::perform_callback("request", req = req) 15. └─vcr (local) callback(...) 16. └─RequestHandlerHttr$new(req)$handle() 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) ── Error ('test-post.R:90:5'): post_status ───────────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_status_success". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:89:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:90:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_status("110632697682444411", action = "reblog", token = fake_token3) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] Error: Test failures In addition: Warning message: `check_cassette_names()` was deprecated in vcr 2.0.0. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.3.5
Check: tests
Result: ERROR Running ‘testthat.R’ [43s/113s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr | | | 0% | |================== | 25% You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "auth_setup_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. └─rtoot:::get_client(instance = instance) 13. └─httr::POST(...) 14. └─httr:::request_perform(req, hu$handle$handle) 15. └─httr:::perform_callback("request", req = req) 16. └─vcr (local) callback(...) 17. └─RequestHandlerHttr$new(req)$handle() 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) ── Error ('test-lists.R:24:5'): post_list_create ─────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_create". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:23:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:24:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_create(title = "rtoot test", token = fake_token) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-lists.R:30:5'): post_list_accounts ───────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_accounts". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:29:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:30:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_accounts(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:20:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_default". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:19:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:20:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_media". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_spoiler_text". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_sensitive". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_visibility". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_language". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:59:5'): post_user ───────────────────────────────────── `post_user("5358", action = "pin", token = fake_token, verbose = FALSE)` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_user_pin". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:57:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:59:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_user(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:69:5'): post_toot, verbose ────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_toot_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:68:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:69:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:79:5'): post_user silent ──────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_user_pin_silent". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:77:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-post.R:79:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::post_user(...) 12. └─httr::POST(...) 13. └─httr:::request_perform(req, hu$handle$handle) 14. └─httr:::perform_callback("request", req = req) 15. └─vcr (local) callback(...) 16. └─RequestHandlerHttr$new(req)$handle() 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) ── Error ('test-post.R:90:5'): post_status ───────────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_status_success". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:89:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:90:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_status("110632697682444411", action = "reblog", token = fake_token3) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] Error: Test failures In addition: Warning message: `check_cassette_names()` was deprecated in vcr 2.0.0. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.3.5
Check: tests
Result: ERROR Running ‘testthat.R’ [42s/112s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr | | | 0% | |================== | 25% You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "auth_setup_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. └─rtoot:::get_client(instance = instance) 13. └─httr::POST(...) 14. └─httr:::request_perform(req, hu$handle$handle) 15. └─httr:::perform_callback("request", req = req) 16. └─vcr (local) callback(...) 17. └─RequestHandlerHttr$new(req)$handle() 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) ── Error ('test-lists.R:24:5'): post_list_create ─────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_create". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:23:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:24:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_create(title = "rtoot test", token = fake_token) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-lists.R:30:5'): post_list_accounts ───────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_accounts". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:29:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:30:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_accounts(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:20:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_default". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:19:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:20:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_media". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_spoiler_text". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_sensitive". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_visibility". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_language". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:59:5'): post_user ───────────────────────────────────── `post_user("5358", action = "pin", token = fake_token, verbose = FALSE)` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_user_pin". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:57:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:59:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_user(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:69:5'): post_toot, verbose ────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_toot_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:68:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:69:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:79:5'): post_user silent ──────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_user_pin_silent". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:77:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-post.R:79:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::post_user(...) 12. └─httr::POST(...) 13. └─httr:::request_perform(req, hu$handle$handle) 14. └─httr:::perform_callback("request", req = req) 15. └─vcr (local) callback(...) 16. └─RequestHandlerHttr$new(req)$handle() 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) ── Error ('test-post.R:90:5'): post_status ───────────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_status_success". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:89:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:90:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_status("110632697682444411", action = "reblog", token = fake_token3) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] Error: Test failures In addition: Warning message: `check_cassette_names()` was deprecated in vcr 2.0.0. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.3.5
Check: tests
Result: ERROR Running 'testthat.R' [30s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr | | | 0% | |================== | 25% You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "auth_setup_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. └─rtoot:::get_client(instance = instance) 13. └─httr::POST(...) 14. └─httr:::request_perform(req, hu$handle$handle) 15. └─httr:::perform_callback("request", req = req) 16. └─vcr (local) callback(...) 17. └─RequestHandlerHttr$new(req)$handle() 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) ── Error ('test-lists.R:24:5'): post_list_create ─────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_create". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:23:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:24:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_create(title = "rtoot test", token = fake_token) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-lists.R:30:5'): post_list_accounts ───────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_list_accounts". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-lists.R:29:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-lists.R:30:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_list_accounts(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:20:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_default". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:19:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:20:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_media". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_spoiler_text". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_sensitive". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_visibility". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_toot_language". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) 11. └─httr::POST(...) 12. └─httr:::request_perform(req, hu$handle$handle) 13. └─httr:::perform_callback("request", req = req) 14. └─vcr (local) callback(...) 15. └─RequestHandlerHttr$new(req)$handle() 16. └─cli::cli_abort(...) 17. └─rlang::abort(...) ── Failure ('test-post.R:59:5'): post_user ───────────────────────────────────── `post_user("5358", action = "pin", token = fake_token, verbose = FALSE)` threw an unexpected error. Message: Failed to find matching request in active cassette, "post_user_pin". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Class: vcr_unhandled/rlang_error/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:57:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_error(...) at test-post.R:59:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_user(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:69:5'): post_toot, verbose ────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_toot_verbose". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:68:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:69:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) ── Error ('test-post.R:79:5'): post_user silent ──────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_user_pin_silent". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:77:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_silent(...) at test-post.R:79:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::post_user(...) 12. └─httr::POST(...) 13. └─httr:::request_perform(req, hu$handle$handle) 14. └─httr:::perform_callback("request", req = req) 15. └─vcr (local) callback(...) 16. └─RequestHandlerHttr$new(req)$handle() 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) ── Error ('test-post.R:90:5'): post_status ───────────────────────────────────── <vcr_unhandled/rlang_error/error/condition> Error in `RequestHandlerHttr$new(req)$handle()`: Failed to find matching request in active cassette, "post_status_success". i Use `local_vcr_configure_log()` to get more details. i Learn more in `vignette(vcr::debugging)`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:89:3 2. │ └─base::withCallingHandlers(...) 3. ├─testthat::expect_message(...) at test-post.R:90:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_status("110632697682444411", action = "reblog", token = fake_token3) 10. └─httr::POST(...) 11. └─httr:::request_perform(req, hu$handle$handle) 12. └─httr:::perform_callback("request", req = req) 13. └─vcr (local) callback(...) 14. └─RequestHandlerHttr$new(req)$handle() 15. └─cli::cli_abort(...) 16. └─rlang::abort(...) [ FAIL 13 | WARN 0 | SKIP 12 | PASS 294 ] Error: Test failures In addition: Warning message: `check_cassette_names()` was deprecated in vcr 2.0.0. Execution halted Flavor: r-devel-windows-x86_64

Version: 0.3.5
Check: tests
Result: ERROR Running ‘testthat.R’ [17s/30s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-auth_process_created_token.R:43:5'): verify ────────────────── `... <- NULL` did not throw the expected error. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_process_created_token.R:42:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_error(...) at test-auth_process_created_token.R:43:5 ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── Error in `httr::content(auth2)$access_token`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. ├─rtoot:::process_created_token(...) 13. │ └─rtoot:::save_auth_rtoot(token, name, path) 14. │ └─rtoot:::is_auth_rtoot(token) 15. └─rtoot:::create_token(client, type = type, browser = browser) ── Failure ('test-get_account.R:12:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is a logical vector (NA) ── Failure ('test-get_account.R:18:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is NULL ── Failure ('test-get_account_auth.R:20:3'): get_account_followers ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:32:3'): get_account_following ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:44:3'): get_account_bookmarks ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:56:3'): get_account_favourites ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:69:3'): get_account_blocks ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:82:3'): get_account_mutes ───────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:11:3'): get_account_statuses ────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:26:3'): get_account_statuses, limit ─── nrow(x) > 40 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:14:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:30:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:39:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:47:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:48:3'): get_context ──────────────────────────── nrow(x$descendants) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:55:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:11:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:22:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:28:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_poll.R:10:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('105976') ── Failure ('test-get_poll.R:21:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_poll.R:27:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_reblogged_by.R:11:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:22:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:28:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_status.R:11:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:17:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is NULL `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:23:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_status.R:29:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_timeline_hashtag.R:9:3'): get_timeline_hashtag ─────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:14:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:23:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:28:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:9:3'): get_timeline_home ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:19:3'): get_timeline_home ──────────────── nrow(y) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_list.R:9:3'): get_timeline_list ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:9:3'): get_timeline_public ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:18:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:24:3'): get_timeline_public ──────────── length(unique(sapply(x$uri, function(uri) httr::parse_url(uri)$hostname))) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_timeline_public.R:28:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-handle_params.R:42:3'): integration test ───────────────────── nrow(output) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Failure ('test-handle_params.R:43:3'): integration test ───────────────────── length(unique(output$id)) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Error ('test-instances.R:10:5'): get_fedi_instances ───────────────────────── Error in `httr::content(request_results)$instances`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:9:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_fedi_instances(token = fake_token2) at test-instances.R:10:5 4. └─dplyr::bind_rows(httr::content(request_results)$instances) 5. └─rlang::list2(...) ── Error ('test-instances.R:21:3'): get_instance_general ─────────────────────── Error in `x$uri`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. └─testthat::expect_equal(x$uri, "mastodon.hk") at test-instances.R:21:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-instances.R:32:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:36:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:41:5'): get_instance_activity ────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:40:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_activity(instance = "social.tchncs.de", token = fake_token) at test-instances.R:41:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:54:5'): get_instance_emoji ───────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:53:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_emoji(instance = "social.tchncs.de", token = fake_token) at test-instances.R:54:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-instances.R:70:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:79:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:84:5'): get_instance_trends ──────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:83:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_trends(instance = "social.tchncs.de", token = fake_token) at test-instances.R:84:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:97:5'): get_instance_rules ───────────────────────── Error in `get_instance_general(instance = instance, token = token, anonymous = anonymous)$rules`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:96:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_rules(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:97:5 ── Error ('test-instances.R:105:5'): get_instance_blocks ─────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:104:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_blocks(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:105:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-lists.R:9:3'): get_list_accounts ───────────────────────────── nrow(x) == 2 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-lists.R:17:3'): get_lists ──────────────────────────────────── nrow(x) == 1 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:17:3'): process_request: n > page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:29:3'): process_request: n < page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:41:3'): process_request: n == page_size, and page_size is lower than API limit ── nrow(x) == n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-rtoot.R:12:3'): rtoot examples ─────────────────────────────── length(x1) (`actual`) not equal to 2 (`expected`). `actual`: 0.0 `expected`: 2.0 ── Failure ('test-rtoot.R:13:3'): rtoot examples ─────────────────────────────── length(x2) (`actual`) not equal to 3 (`expected`). `actual`: 0.0 `expected`: 3.0 ── Failure ('test-search_accounts.R:10:3'): search_accounts ──────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] Error: Test failures Execution halted Flavor: r-patched-linux-x86_64

Version: 0.3.5
Check: tests
Result: ERROR Running 'testthat.R' [23s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-auth_process_created_token.R:43:5'): verify ────────────────── `... <- NULL` did not throw the expected error. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_process_created_token.R:42:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_error(...) at test-auth_process_created_token.R:43:5 ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── Error in `httr::content(auth2)$access_token`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. ├─rtoot:::process_created_token(...) 13. │ └─rtoot:::save_auth_rtoot(token, name, path) 14. │ └─rtoot:::is_auth_rtoot(token) 15. └─rtoot:::create_token(client, type = type, browser = browser) ── Failure ('test-get_account.R:12:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is a logical vector (NA) ── Failure ('test-get_account.R:18:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is NULL ── Failure ('test-get_account_auth.R:20:3'): get_account_followers ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:32:3'): get_account_following ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:44:3'): get_account_bookmarks ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:56:3'): get_account_favourites ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:69:3'): get_account_blocks ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:82:3'): get_account_mutes ───────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:11:3'): get_account_statuses ────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:26:3'): get_account_statuses, limit ─── nrow(x) > 40 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:14:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:30:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:39:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:47:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:48:3'): get_context ──────────────────────────── nrow(x$descendants) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:55:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:11:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:22:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:28:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_poll.R:10:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('105976') ── Failure ('test-get_poll.R:21:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_poll.R:27:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_reblogged_by.R:11:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:22:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:28:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_status.R:11:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:17:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is NULL `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:23:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_status.R:29:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_timeline_hashtag.R:9:3'): get_timeline_hashtag ─────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:14:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:23:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:28:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:9:3'): get_timeline_home ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:19:3'): get_timeline_home ──────────────── nrow(y) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_list.R:9:3'): get_timeline_list ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:9:3'): get_timeline_public ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:18:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:24:3'): get_timeline_public ──────────── length(unique(sapply(x$uri, function(uri) httr::parse_url(uri)$hostname))) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_timeline_public.R:28:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-handle_params.R:42:3'): integration test ───────────────────── nrow(output) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Failure ('test-handle_params.R:43:3'): integration test ───────────────────── length(unique(output$id)) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Error ('test-instances.R:10:5'): get_fedi_instances ───────────────────────── Error in `httr::content(request_results)$instances`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:9:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_fedi_instances(token = fake_token2) at test-instances.R:10:5 4. └─dplyr::bind_rows(httr::content(request_results)$instances) 5. └─rlang::list2(...) ── Error ('test-instances.R:21:3'): get_instance_general ─────────────────────── Error in `x$uri`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. └─testthat::expect_equal(x$uri, "mastodon.hk") at test-instances.R:21:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-instances.R:32:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:36:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:41:5'): get_instance_activity ────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:40:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_activity(instance = "social.tchncs.de", token = fake_token) at test-instances.R:41:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:54:5'): get_instance_emoji ───────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:53:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_emoji(instance = "social.tchncs.de", token = fake_token) at test-instances.R:54:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-instances.R:70:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:79:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:84:5'): get_instance_trends ──────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:83:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_trends(instance = "social.tchncs.de", token = fake_token) at test-instances.R:84:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:97:5'): get_instance_rules ───────────────────────── Error in `get_instance_general(instance = instance, token = token, anonymous = anonymous)$rules`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:96:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_rules(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:97:5 ── Error ('test-instances.R:105:5'): get_instance_blocks ─────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:104:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_blocks(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:105:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-lists.R:9:3'): get_list_accounts ───────────────────────────── nrow(x) == 2 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-lists.R:17:3'): get_lists ──────────────────────────────────── nrow(x) == 1 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:17:3'): process_request: n > page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:29:3'): process_request: n < page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:41:3'): process_request: n == page_size, and page_size is lower than API limit ── nrow(x) == n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-rtoot.R:12:3'): rtoot examples ─────────────────────────────── length(x1) (`actual`) not equal to 2 (`expected`). `actual`: 0.0 `expected`: 2.0 ── Failure ('test-rtoot.R:13:3'): rtoot examples ─────────────────────────────── length(x2) (`actual`) not equal to 3 (`expected`). `actual`: 0.0 `expected`: 3.0 ── Failure ('test-search_accounts.R:10:3'): search_accounts ──────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] Error: Test failures Execution halted Flavor: r-release-windows-x86_64

Version: 0.3.5
Check: tests
Result: ERROR Running 'testthat.R' [27s] 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(rtoot) > > test_check("rtoot") You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr You should do software testing with the `RTOOT_DEFAULT_TOKEN` envvar! Read: https://github.com/schochastics/rtoot/wiki/vcr [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • !file.exists("../testdata/malformed.json") is TRUE (1): 'test-stream.R:62:3' • On CRAN (8): 'test-auth_check_token_rtoot.R:60:3', 'test-auth_check_token_rtoot.R:70:3', 'test-auth_check_token_rtoot.R:81:3', 'test-auth_check_token_rtoot.R:96:3', 'test-auth_check_token_rtoot.R:110:3', 'test-auth_setup.R:6:3', 'test-stream.R:16:3', 'test-stream.R:32:3' • Sys.getenv("RTOOT_DEFAULT_TOKEN") == "" is TRUE (1): 'test-auth_envvar.R:35:3' • clipr::clipr_available() is not TRUE (2): 'test-auth_envvar.R:17:3', 'test-auth_process_created_token.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-auth_process_created_token.R:43:5'): verify ────────────────── `... <- NULL` did not throw the expected error. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_process_created_token.R:42:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_error(...) at test-auth_process_created_token.R:43:5 ── Error ('test-auth_setup.R:27:5'): respect verbose, #113 ───────────────────── Error in `httr::content(auth2)$access_token`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-auth_setup.R:26:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_silent(...) at test-auth_setup.R:27:5 4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 5. │ ├─testthat (local) .capture(...) 6. │ │ ├─withr::with_output_sink(...) 7. │ │ │ └─base::force(code) 8. │ │ ├─base::withCallingHandlers(...) 9. │ │ └─base::withVisible(code) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. └─rtoot::auth_setup(...) 12. ├─rtoot:::process_created_token(...) 13. │ └─rtoot:::save_auth_rtoot(token, name, path) 14. │ └─rtoot:::is_auth_rtoot(token) 15. └─rtoot:::create_token(client, type = type, browser = browser) ── Failure ('test-get_account.R:12:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is a logical vector (NA) ── Failure ('test-get_account.R:18:3'): get_account ──────────────────────────── `id` (`actual`) not equal to x$id (`expected`). `actual` is a character vector ('109281650341067731') `expected` is NULL ── Failure ('test-get_account_auth.R:20:3'): get_account_followers ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:32:3'): get_account_following ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:44:3'): get_account_bookmarks ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:56:3'): get_account_favourites ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:69:3'): get_account_blocks ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_auth.R:82:3'): get_account_mutes ───────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:11:3'): get_account_statuses ────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_account_statuses.R:26:3'): get_account_statuses, limit ─── nrow(x) > 40 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:14:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:30:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:39:3'): get_context ──────────────────────────── nrow(x$descendants) == 0 is not FALSE `actual`: TRUE `expected`: FALSE ── Failure ('test-get_context.R:47:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:48:3'): get_context ──────────────────────────── nrow(x$descendants) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_context.R:55:3'): get_context ──────────────────────────── nrow(x$ancestors) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:11:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:22:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_favourited_by.R:28:3'): get_favourited_by ──────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_poll.R:10:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('105976') ── Failure ('test-get_poll.R:21:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_poll.R:27:3'): get_poll ────────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('286799') ── Failure ('test-get_reblogged_by.R:11:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:22:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_reblogged_by.R:28:3'): get_reblogged_by ────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_status.R:11:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:17:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is NULL `expected` is a character vector ('109298295023649405') ── Failure ('test-get_status.R:23:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_status.R:29:3'): get_status ────────────────────────────── x$id (`actual`) not equal to `id` (`expected`). `actual` is a logical vector (NA) `expected` is a character vector ('109294719267373593') ── Failure ('test-get_timeline_hashtag.R:9:3'): get_timeline_hashtag ─────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:14:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:23:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_hashtag.R:28:3'): get_timeline_hashtag ────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:9:3'): get_timeline_home ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_home.R:19:3'): get_timeline_home ──────────────── nrow(y) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_list.R:9:3'): get_timeline_list ───────────────── nrow(x) == 5 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:9:3'): get_timeline_public ───────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:18:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-get_timeline_public.R:24:3'): get_timeline_public ──────────── length(unique(sapply(x$uri, function(uri) httr::parse_url(uri)$hostname))) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_timeline_public.R:28:3'): get_timeline_public ──────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-handle_params.R:42:3'): integration test ───────────────────── nrow(output) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Failure ('test-handle_params.R:43:3'): integration test ───────────────────── length(unique(output$id)) (`actual`) not equal to 160 (`expected`). `actual`: 0.0 `expected`: 160.0 ── Error ('test-instances.R:10:5'): get_fedi_instances ───────────────────────── Error in `httr::content(request_results)$instances`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:9:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_fedi_instances(token = fake_token2) at test-instances.R:10:5 4. └─dplyr::bind_rows(httr::content(request_results)$instances) 5. └─rlang::list2(...) ── Error ('test-instances.R:21:3'): get_instance_general ─────────────────────── Error in `x$uri`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. └─testthat::expect_equal(x$uri, "mastodon.hk") at test-instances.R:21:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-instances.R:32:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:36:3'): get_instance_peers ─────────────────────── length(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:41:5'): get_instance_activity ────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:40:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_activity(instance = "social.tchncs.de", token = fake_token) at test-instances.R:41:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:54:5'): get_instance_emoji ───────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:53:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_emoji(instance = "social.tchncs.de", token = fake_token) at test-instances.R:54:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-instances.R:70:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-instances.R:79:3'): get_instance_directory ─────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-instances.R:84:5'): get_instance_trends ──────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:83:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_trends(instance = "social.tchncs.de", token = fake_token) at test-instances.R:84:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Error ('test-instances.R:97:5'): get_instance_rules ───────────────────────── Error in `get_instance_general(instance = instance, token = token, anonymous = anonymous)$rules`: $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:96:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_rules(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:97:5 ── Error ('test-instances.R:105:5'): get_instance_blocks ─────────────────────── Error in `dplyr::bind_rows(request_results)`: Argument 1 must be a data frame or a named atomic vector. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-instances.R:104:3 2. │ └─cassette$call_block(...) 3. └─rtoot::get_instance_blocks(instance = "social.tchncs.de", anonymous = TRUE) at test-instances.R:105:5 4. └─dplyr::bind_rows(request_results) 5. └─rlang::abort(glue("Argument {i} must be a data frame or a named atomic vector.")) ── Failure ('test-lists.R:9:3'): get_list_accounts ───────────────────────────── nrow(x) == 2 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-lists.R:17:3'): get_lists ──────────────────────────────────── nrow(x) == 1 is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:17:3'): process_request: n > page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:29:3'): process_request: n < page_size ────────── nrow(x) >= n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-pagination.R:41:3'): process_request: n == page_size, and page_size is lower than API limit ── nrow(x) == n is not TRUE `actual`: FALSE `expected`: TRUE ── Failure ('test-post.R:23:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:22:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:23:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:29:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:28:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:29:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:35:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:34:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:35:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:41:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:40:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:41:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-post.R:47:5'): post_toot, real ─────────────────────────────── `... <- NULL` threw an unexpected error. Message: $ operator is invalid for atomic vectors Class: simpleError/error/condition Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-post.R:46:3 2. │ └─cassette$call_block(...) 3. ├─testthat::expect_error(...) at test-post.R:47:5 4. │ └─testthat:::expect_condition_matching(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─rtoot::post_toot(...) 10. └─rtoot:::upload_media_to_mastodon(media[[i]], alt_text[[i]], token) ── Failure ('test-rtoot.R:12:3'): rtoot examples ─────────────────────────────── length(x1) (`actual`) not equal to 2 (`expected`). `actual`: 0.0 `expected`: 2.0 ── Failure ('test-rtoot.R:13:3'): rtoot examples ─────────────────────────────── length(x2) (`actual`) not equal to 3 (`expected`). `actual`: 0.0 `expected`: 3.0 ── Failure ('test-search_accounts.R:10:3'): search_accounts ──────────────────── nrow(x) != 0 is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 68 | WARN 17 | SKIP 12 | PASS 226 ] Error: Test failures Execution halted Flavor: r-oldrel-windows-x86_64