Running ‘testthat.R’ [5s/281s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GNRS)
  > 
  > 
  > test_check("GNRS")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • class(GNRS_dictionary) == "data.frame" is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-gnrs.R:18:3): example works ───────────────────────────────────
  class(results) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs.R:20:3): example works ───────────────────────────────────
  safe_nrow(results) not equal to nrow(gnrs_testfile).
  1/1 mismatches
  [1] 0 - 21 == -21
  ── Failure (test-gnrs.R:28:3): example works ───────────────────────────────────
  class(results) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs.R:30:3): example works ───────────────────────────────────
  safe_nrow(results) not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  ── Failure (test-gnrs_data_dictionary.R:9:3): example works ────────────────────
  class(GNRS_dictionary) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_get_counties.R:22:3): example works ──────────────────────
  class(us_counties) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_get_counties.R:24:3): example works ──────────────────────
  safe_nrow(us_counties) is not strictly more than 100. Difference: -100
  ── Failure (test-gnrs_get_counties.R:35:3): default input returns data.frame ───
  class(counties) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_get_counties.R:37:3): default input returns data.frame ───
  safe_nrow(counties) is not strictly more than 1000. Difference: -1e+03
  ── Failure (test-gnrs_get_countries.R:18:3): example works ─────────────────────
  class(countries) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_get_countries.R:20:3): example works ─────────────────────
  safe_nrow(countries) is not strictly more than 100. Difference: -100
  ── Failure (test-gnrs_get_states.R:18:3): example works ────────────────────────
  class(states) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_get_states.R:20:3): example works ────────────────────────
  safe_nrow(states) is not strictly more than 100. Difference: -100
  ── Failure (test-gnrs_get_states.R:33:3): inputing specific countries works ────
  class(states) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_get_states.R:35:3): inputing specific countries works ────
  safe_nrow(states) is not strictly more than 10. Difference: -10
  ── Failure (test-gnrs_metadata.R:10:3): example works ──────────────────────────
  class(all_metadata) not equal to "list".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "list"
  ── Failure (test-gnrs_metadata.R:12:3): example works ──────────────────────────
  length(all_metadata) not equal to 4.
  1/1 mismatches
  [1] 0 - 4 == -4
  ── Failure (test-gnrs_super_simple.R:10:3): example works ──────────────────────
  class(results) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_super_simple.R:12:3): example works ──────────────────────
  nrow(results) not equal to 1.
  target is NULL, current is numeric
  ── Failure (test-gnrs_super_simple.R:22:3): example works ──────────────────────
  class(results) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_super_simple.R:24:3): example works ──────────────────────
  nrow(results) not equal to 1.
  target is NULL, current is numeric
  ── Failure (test-gnrs_super_simple.R:40:3): bad input returns no match ─────────
  nonsense_query$match_status not equal to "no match".
  target is NULL, current is character
  ── Failure (test-gnrs_super_simple.R:56:3): Good input returns a match ─────────
  sensible_query$match_status not equal to "full match".
  target is NULL, current is character
  ── Failure (test-gnrs_template.R:13:3): example works ──────────────────────────
  class(results) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_template.R:14:3): example works ──────────────────────────
  nrow(results) not equal to 2.
  target is NULL, current is numeric
  ── Failure (test-gnrs_version.R:10:3): example works ───────────────────────────
  class(GNRS_version_metadata) not equal to "data.frame".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "data.frame"
  ── Failure (test-gnrs_version.R:12:3): example works ───────────────────────────
  nrow(GNRS_version_metadata) not equal to 1.
  target is NULL, current is numeric
  
  [ FAIL 27 | WARN 0 | SKIP 1 | PASS 17 ]
  Error: Test failures
  Execution halted