Running ‘testthat.R’ [8s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(tidytuesdayR)
  > 
  > test_check("tidytuesdayR")
  Saving _problems/test-tt_submit-12.R
  Saving _problems/test-tt_submit-96.R
  [ FAIL 2 | WARN 0 | SKIP 21 | PASS 162 ]
  
  ══ Skipped tests (21) ══════════════════════════════════════════════════════════
  • .Platform$OS.type == "windows" is not TRUE (3): 'test-encoding.R:2:3',
    'test-encoding.R:12:3', 'test-encoding.R:22:3'
  • On CRAN (11): 'test-tt_available.R:15:1', 'test-tt_available.R:55:1',
    'test-tt_load.R:13:1', 'test-tt_load_gh.R:192:1', 'test-tt_meta.R:24:1',
    'test-tt_meta.R:33:1', 'test-tt_meta.R:57:1', 'test-tt_submit.R:15:1',
    'test-tt_submit.R:24:1', 'test-tt_submit.R:33:1', 'test-tt_submit.R:48:1'
  • {usethis} is not installed. (7): 'test-tt_clean.R:4:3',
    'test-tt_curate_utils.R:4:3', 'test-tt_curate_utils.R:13:3',
    'test-tt_intro.R:4:3', 'test-tt_meta.R:4:3', 'test-tt_save_dataset.R:5:3',
    'test-use_tidytemplate.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tt_submit.R:2:3'): tt_find_dataset_files finds expected files ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `tt_find_images(path)`: The package "yaml" is required to verify image files.
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(...) at test-tt_submit.R:2:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tidytuesdayR:::tt_find_dataset_files(test_path("fixtures", "tt_submission"))
   5.   └─tidytuesdayR:::tt_find_images(path)
   6.     └─rlang::check_installed("yaml", "to verify image files.")
  ── Error ('test-tt_submit.R:92:9'): tt_submit informs about the PR url ─────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `tt_find_images(path)`: The package "yaml" is required to verify image files.
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tt_submit.R:89:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_invisible(...) at test-tt_submit.R:91:7
    8. │ └─base::withVisible(call)
    9. └─tidytuesdayR::tt_submit(...) at test-tt_submit.R:92:9
   10.   └─tidytuesdayR:::tt_find_dataset_files(path)
   11.     └─tidytuesdayR:::tt_find_images(path)
   12.       └─rlang::check_installed("yaml", "to verify image files.")
  
  [ FAIL 2 | WARN 0 | SKIP 21 | PASS 162 ]
  Deleting unused snapshots: 'tt_clean/cleaning.R', 'tt_intro/intro.md',
  'tt_meta/meta.yaml', 'tt_save_dataset/mtcars.csv', and
  'tt_save_dataset/mtcars.md'
  Error:
  ! Test failures.
  Execution halted