Running ‘test-all.R’ [16s/457s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library("vcr")
  > library("rnpn")
  > 
  > 
  > test_check("rnpn")
  [ FAIL 2 | WARN 2 | SKIP 21 | PASS 93 ]
  
  ══ Skipped tests (21) ══════════════════════════════════════════════════════════
  • On CRAN (20): 'test-npn-geoserver.R:6:3', 'test-npn-geoserver.R:23:3',
    'test-npn-geoserver.R:53:3', 'test-npn-geoserver.R:100:3',
    'test-npn-geoserver.R:123:3', 'test-npn-geoserver.R:146:3',
    'test-npn-geoserver.R:163:3', 'test-npn-observations.R:23:3',
    'test-npn-observations.R:36:3', 'test-npn-observations.R:135:3',
    'test-npn-observations.R:187:3', 'test-npn-observations.R:237:3',
    'test-npn-observations.R:311:3', 'test-npn-observations.R:387:3',
    'test-npn-observations.R:462:3', 'test-npn-observations.R:538:3',
    'test-npn-observations.R:599:3', 'test-npn-observations.R:658:3',
    'test-npn-observations.R:750:3', 'test-npn-observations.R:866:3'
  • empty test (1): 'test-npn-stations.R:32:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-npn-phenophases.R:32:3'): npn_phenophase_definitions works ───
  pp$phenophase_name inherits from `'NULL'` not `'character'`.
  ── Error ('test-npn-phenophases.R:33:3'): npn_phenophase_definitions works ─────
  <vctrs_error_subscript_oob/vctrs_error_subscript/rlang_error/error/condition>
  Error in `pp[1, "phenophase_name"]`: Can't subset columns that don't exist.
  ✖ Column `phenophase_name` doesn't exist.
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(trimws(pp[1, "phenophase_name"]), "First leaf") at test-npn-phenophases.R:33:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::trimws(pp[1, "phenophase_name"])
    5. │ ├─base (local) mysub(...)
    6. │ │ └─base::sub(re, "", x, perl = TRUE)
    7. │ │   └─base::is.factor(x)
    8. │ └─base (local) mysub(paste0("^", whitespace, "+"), x)
    9. │   └─base::sub(re, "", x, perl = TRUE)
   10. │     └─base::is.factor(x)
   11. ├─pp[1, "phenophase_name"]
   12. ├─tibble:::`[.tbl_df`(pp, 1, "phenophase_name")
   13. │ └─tibble:::vectbl_as_col_location(...)
   14. │   ├─tibble:::subclass_col_index_errors(...)
   15. │   │ └─base::withCallingHandlers(...)
   16. │   └─vctrs::vec_as_location(j, n, names, missing = "error", call = call)
   17. └─vctrs (local) `<fn>`()
   18.   └─vctrs:::stop_subscript_oob(...)
   19.     └─vctrs:::stop_subscript(...)
   20.       └─rlang::abort(...)
  
  [ FAIL 2 | WARN 2 | SKIP 21 | PASS 93 ]
  Error: Test failures
  Execution halted
  Ran 58/58 deferred expressions