Running ‘testthat.R’ [55s/64s]
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)
  > suppressPackageStartupMessages(library(srcpkgs))
  > 
  > test_check("srcpkgs")
  [ FAIL 7 | WARN 25 | SKIP 5 | PASS 589 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (5): 'test-pkg_check.R:5:3', 'test-pkg_test.R:75:1',
    'test-pkgs_check.R:5:3', 'test-pkgs_test.R:2:1', 'test-pkgs_test.R:66:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-pkg_meta.R:44:3'): fetch_srcpkgs_meta ────────────────────────
  Expected `is.data.frame(df)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-pkg_meta.R:45:3'): fetch_srcpkgs_meta ────────────────────────
  Expected `df$package` to be identical to "pkg1".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('pkg1')
  
  ── Failure ('test-pkg_meta.R:46:3'): fetch_srcpkgs_meta ────────────────────────
  Expected `df$attached` to be FALSE.
  Differences:
  `actual` is NULL
  `expected` is a logical vector (FALSE)
  
  ── Failure ('test-pkg_meta.R:54:3'): fetch_srcpkgs_meta ────────────────────────
  Expected `fetch_srcpkgs_meta()$package` to be identical to "pkg1".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('pkg1')
  
  ── Failure ('test-pkg_meta.R:66:3'): fetch_srcpkgs_meta ────────────────────────
  Expected `is.data.frame(df)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-pkg_meta.R:67:3'): fetch_srcpkgs_meta ────────────────────────
  Expected `all(c("pkg1", "pkg2") %in% df$package)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Error ('test-pkg_meta.R:69:3'): fetch_srcpkgs_meta ──────────────────────────
  Error in `expect_setequal(df$attached, c(TRUE, FALSE))`: `object` must be a vector, not `NULL`.
  Backtrace:
      ▆
   1. └─testthat::expect_setequal(object = df$attached) at test-pkg_meta.R:69:3
   2.   └─testthat:::check_vector(act$val, error_arg = "object")
   3.     └─testthat:::stop_input_type(x, "a vector", arg = error_arg, call = error_call)
   4.       └─rlang::abort(message, ..., call = call, arg = arg)
  
  [ FAIL 7 | WARN 25 | SKIP 5 | PASS 589 ]
  Error:
  ! Test failures.
  Execution halted