* using log directory 'd:/Rcompile/CRANpkg/local/4.6/rtoot.Rcheck' * using R Under development (unstable) (2025-07-22 r88445 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'rtoot/DESCRIPTION' ... OK * this is package 'rtoot' version '0.3.5' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'rtoot' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [31s] 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 ───────────────────── 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 ─────────────────────────────── 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 ───────────────────────────── 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 ────────────────────────────── 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 ──────────────────────────────── 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 ───────────────────────────────────── 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [6s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 1 ERROR