Running ‘testthat.R’ [2s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(flashr)
  > 
  > test_check("flashr")
  Saving _problems/test-extract_functions-2.R
  Saving _problems/test-extract_functions-21.R
  Saving _problems/test-extract_functions-39.R
  Too Many Requests (RFC 6585) (HTTP 429).Saving _problems/test-flashcard-120.R
  [ FAIL 4 | WARN 4 | SKIP 10 | PASS 0 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-flashcard.R:2:3', 'test-flashcard.R:54:3',
    'test-flashcard.R:124:3', 'test-flashcard.R:139:3', 'test-list_decks.R:2:3',
    'test-list_decks.R:25:3', 'test-list_decks.R:40:3', 'test-list_decks.R:56:3',
    'test-list_decks.R:61:3', 'test-utils.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract_functions.R:2:3'): code is extracted ───────────────────
  Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/JeffreyRStevens/flashr/refs/heads/main/README.Rmd'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(extract_code(file = rmd)[1], "knitr::opts_chunk$set(") at test-extract_functions.R:2:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─flashr::extract_code(file = rmd)
   5.   └─litedown::crack(file)
   6.     └─litedown:::read_input(input, text)
   7.       └─xfun::read_utf8(input)
   8.         └─base::readLines(con, encoding = "UTF-8", warn = FALSE)
   9.           └─base::file(con, "r")
  ── Error ('test-extract_functions.R:15:3'): functions are extracted ────────────
  Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/JeffreyRStevens/flashr/refs/heads/main/README.Rmd'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-extract_functions.R:15:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─flashr::extract_functions(extract_code(rmd))
    5. │ └─base::stopifnot(...)
    6. └─flashr::extract_code(rmd)
    7.   └─litedown::crack(file)
    8.     └─litedown:::read_input(input, text)
    9.       └─xfun::read_utf8(input)
   10.         └─base::readLines(con, encoding = "UTF-8", warn = FALSE)
   11.           └─base::file(con, "r")
  ── Error ('test-extract_functions.R:36:3'): function descriptions and packages are retrieved ──
  Error in `file(con, "r")`: cannot open the connection to 'https://raw.githubusercontent.com/JeffreyRStevens/flashr/refs/heads/main/README.Rmd'
  Backtrace:
       ▆
    1. ├─testthat::expect_identical(...) at test-extract_functions.R:36:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─flashr::build_functions_df(file = rmd, title = "Test")
    5.   ├─flashr::extract_functions(extract_code(file))
    6.   │ └─base::stopifnot(...)
    7.   └─flashr::extract_code(file)
    8.     └─litedown::crack(file)
    9.       └─litedown:::read_input(input, text)
   10.         └─xfun::read_utf8(input)
   11.           └─base::readLines(con, encoding = "UTF-8", warn = FALSE)
   12.             └─base::file(con, "r")
  ── Failure ('test-flashcard.R:120:3'): decks are created correctly ─────────────
  Expected `create_deck(x = c("as_tibble()", "bind_rows()", "c()"))` not to throw any errors.
  Actually got a <simpleError> with message:
    cannot open the connection to 'https://raw.githubusercontent.com/JeffreyRStevens/flashr_decks/refs/heads/main/data/functions.csv'
  
  [ FAIL 4 | WARN 4 | SKIP 10 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted