Running ‘spelling.R’
  Running ‘testthat.R’ [8s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(campfin)
  > 
  > test_check("campfin")
  ── Skip (test-check-city.R:5:3): checking city without guessing returns a logica
  Reason: nchar(Sys.getenv("GEOCODE_KEY")) > 0 is not TRUE
  
  ── Skip (test-check-city.R:14:3): checking city returns data frame when guessing
  Reason: nchar(Sys.getenv("GEOCODE_KEY")) > 0 is not TRUE
  
  ── Skip (test-check-city.R:22:3): fetching city returns an entire address string
  Reason: nchar(Sys.getenv("GEOCODE_KEY")) > 0 is not TRUE
  
  ── Skip (test-check-city.R:28:3): fetching addresses returns warnings and errors
  Reason: nchar(Sys.getenv("GEOCODE_KEY")) > 0 is not TRUE
  
  ── Skip (test-check-city.R:38:3): checking cities returns warnings and errors ──
  Reason: nchar(Sys.getenv("GEOCODE_KEY")) > 0 is not TRUE
  
  ── FAILURE (test-encoding.R:16:3): encoding for multiple files returns multiple 
  nrow(file_encoding(tmps)) not equal to 50.
  1/1 mismatches
  [1] 99 - 50 == 49
  
  ── FAILURE (test-encoding.R:20:3): encoding for no file errors ─────────────────
  `file_encoding(tempfile())` did not throw an error.
  
  ── Warning (test-new-files.R:23:3): the age of a single file can be checked ────
  file does not exist, proceeding.
  
  trying URL 'https://raw.githubusercontent.com/irworkshop/campfin/master/README.md'
  Content type 'text/plain; charset=utf-8' length 8127 bytes
  ==================================================
  downloaded 8127 bytes
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● nchar(Sys.getenv("GEOCODE_KEY")) > 0 is not TRUE (5)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  FAILURE (test-encoding.R:16:3): encoding for multiple files returns multiple rows
  FAILURE (test-encoding.R:20:3): encoding for no file errors
  Warning (test-new-files.R:23:3): the age of a single file can be checked
  
  [ FAIL 2 | WARN 1 | SKIP 5 | PASS 152 ]
  Error: Test failures
  Execution halted