Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [449s/282s]
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(flir)
  
  Attaching package: 'flir'
  
  The following object is masked from 'package:utils':
  
      fix
  
  > 
  > test_check("flir")
  Starting 2 test processes.
  > test-absolute_path.R: v Created './flir'.
  > test-absolute_path.R: i Use `add_new_rule()` to create a custom rule.
  > test-add_new_rule.R: v Created './flir'.
  > test-add_new_rule.R: i Use `add_new_rule()` to create a custom rule.
  > test-add_new_rule.R: v Created './flir/rules/custom/foobar.yml'.
  > test-add_new_rule.R: i Add "foobar" to 'flir/config.yml' to be able to use it.
  > test-add_new_rule.R: v Created './flir'.
  > test-add_new_rule.R: i Use `add_new_rule()` to create a custom rule.
  > test-add_new_rule.R: v Created './flir/rules/custom/foobar.yml'.
  > test-add_new_rule.R: v Created './flir'.
  > test-add_new_rule.R: i Use `add_new_rule()` to create a custom rule.
  > test-add_new_rule.R: v Created './flir/rules/custom/foobar.yml' and './flir/rules/custom/foobar2.yml'.
  > test-add_new_rule.R: i Add "foobar" and "foobar2" to 'flir/config.yml' to be able to use it.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-custom_linters.R: v Created './flir'.
  > test-custom_linters.R: i Use `add_new_rule()` to create a custom rule.
  > test-custom_linters.R: v Created './flir'.
  > test-custom_linters.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  > test-config_yml.R: v Created './flir'.
  > test-config_yml.R: i Use `add_new_rule()` to create a custom rule.
  Saving _problems/test-config_yml-384.R
  > test-export_new_rule.R: v Created './inst/flir/rules/foobar.yml'.
  > test-export_new_rule.R: v Created './inst/flir/rules/foobar2.yml'.
  > test-export_new_rule.R: v Created './inst/flir/rules/foobar.yml'.
  > test-export_new_rule.R: v Created './flir'.
  > test-export_new_rule.R: i Use `add_new_rule()` to create a custom rule.
  > test-export_new_rule.R: v Created './inst/flir/rules/foobar.yml' and './inst/flir/rules/foobar2.yml'.
  Saving _problems/test-numeric_leading_zero-10.R
  > test-path.R: v Created './flir'.
  > test-path.R: i Use `add_new_rule()` to create a custom rule.
  > test-setup_flir.R: v Created './flir'.
  > test-setup_flir.R: i Use `add_new_rule()` to create a custom rule.
  > test-setup_flir.R: v Created './flir'.
  > test-setup_flir.R: i Use `add_new_rule()` to create a custom rule.
  > test-unreachable_code.R: v Created './flir'.
  > test-unreachable_code.R: i Use `add_new_rule()` to create a custom rule.
  [ FAIL 2 | WARN 4 | SKIP 68 | PASS 1095 ]
  
  ══ Skipped tests (68) ══════════════════════════════════════════════════════════
  • On CRAN (67): 'test-add_new_rule.R:1:1', 'test-add_new_rule.R:13:1',
    'test-add_new_rule.R:23:1', 'test-T_and_F_symbol.R:125:1',
    'test-class_equals.R:69:1', 'test-condition_message.R:138:1',
    'test-config_yml.R:35:1', 'test-config_yml.R:54:1', 'test-config_yml.R:68:1',
    'test-config_yml.R:82:1', 'test-config_yml.R:96:1',
    'test-config_yml.R:110:1', 'test-config_yml.R:124:1',
    'test-expect_comparison.R:47:1', 'test-expect_identical.R:68:1',
    'test-expect_length.R:59:1', 'test-expect_not.R:41:1',
    'test-expect_named.R:58:1', 'test-expect_null.R:64:1',
    'test-expect_s4_class.R:43:1', 'test-expect_true_false.R:52:1',
    'test-export_new_rule.R:1:1', 'test-export_new_rule.R:9:1',
    'test-export_new_rule.R:25:1', 'test-export_new_rule.R:34:1',
    'test-fix_several_files.R:1:1', 'test-flint_ignore.R:65:1',
    'test-expect_type.R:109:1', 'test-expect_type.R:155:1',
    'test-length_levels.R:13:1', 'test-length_test.R:29:1',
    'test-lengths.R:47:1', 'test-literal_coercion.R:91:1',
    'test-literal_coercion.R:91:1', 'test-literal_coercion.R:91:1',
    'test-literal_coercion.R:91:1', 'test-literal_coercion.R:91:1',
    'test-literal_coercion.R:91:1', 'test-literal_coercion.R:91:1',
    'test-literal_coercion.R:91:1', 'test-literal_coercion.R:91:1',
    'test-literal_coercion.R:91:1', 'test-message.R:1:1', 'test-message.R:9:1',
    'test-message.R:18:1', 'test-message.R:32:1', 'test-message.R:40:1',
    'test-matrix_apply.R:73:1', 'test-nested-lints.R:1:1',
    'test-numeric_leading_zero.R:29:1', 'test-outer_negation.R:48:1',
    'test-print.R:1:1', 'test-print.R:17:1', 'test-print.R:36:1',
    'test-rep_len.R:62:1', 'test-redundant_ifelse.R:111:1',
    'test-sample_int.R:82:1', 'test-setup_flir.R:1:1', 'test-setup_flir.R:21:1',
    'test-seq.R:154:1', 'test-seq.R:194:1', 'test-stopifnot_all.R:30:1',
    'test-sort.R:116:1', 'test-undesirable_function.R:7:1',
    'test-unreachable_code.R:5:1', 'test-unreachable_code.R:82:1',
    'test-which_grepl.R:36:1'
  • {testpkge31e867837060} is not installed. (1): 'test-config_yml.R:340:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-config_yml.R:384:3'): config: the user can exclude rules from external packages ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `lint("foo.R", open = FALSE)`: The package "testpkge31e867837060" is required.
  Backtrace:
      ▆
   1. └─flir::lint("foo.R", open = FALSE) at test-config_yml.R:384:3
   2.   └─flir:::resolve_linters(path, linters, exclude_linters)
   3.     └─flir:::get_external_linters_from_config(path_common)
   4.       └─rlang::check_installed(installed, call = rlang::caller_env(2))
  ── Error ('test-numeric_leading_zero.R:10:3'): numeric_leading_zero_linter skips allowed usages ──
  Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
  Backtrace:
      ▆
   1. └─flir:::expect_no_lint("g <- 0x78", linter) at test-numeric_leading_zero.R:10:3
   2.   └─flir:::expect_lint(x, message = NULL, linter, ...) at ./helpers.R:24:3
   3.     └─flir::lint_text(x, linters = linter, ...) at ./helpers.R:12:3
   4.       └─base::cat(text, file = tmp)
   5.         └─base::file(file, ifelse(append, "a", "w"))
  
  [ FAIL 2 | WARN 4 | SKIP 68 | PASS 1095 ]
  Error:
  ! Test failures.
  Execution halted