Running ‘test-all.R’ [3s/8s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > 
  > library(testthat)
  > 
  > test_check("prettymapr")
  Loading required package: prettymapr
  ── 1. Error: geocode output is consistent (@test_geocode.R#8)  ─────────────────
  $ operator is invalid for atomic vectors
  Backtrace:
    1. prettymapr::geocode("wolfville, ns", output = "data.frame", source = source)
    2. plyr::adply(...)
    3. plyr::ldply(...)
    4. plyr::llply(...)
    7. prettymapr:::.fun(piece, ...)
    8. prettymapr:::geocoder_partial(row$query)
    9. prettymapr:::geocoder(...)
   10. plyr::adply(...)
   11. plyr::ldply(...)
   12. plyr::llply(...)
   15. prettymapr:::.fun(piece, ...)
  
  ── 2. Error: emptys and nulls produce the correct output (@test_geocode.R#65)  ─
  $ operator is invalid for atomic vectors
  Backtrace:
    1. prettymapr::geocode("wolfville, ns", output = "data.frame")
    2. plyr::adply(...)
    3. plyr::ldply(...)
    4. plyr::llply(...)
    7. prettymapr:::.fun(piece, ...)
    8. prettymapr:::geocoder_partial(row$query)
    9. prettymapr:::geocoder(...)
   10. plyr::adply(...)
   11. plyr::ldply(...)
   12. plyr::llply(...)
   15. prettymapr:::.fun(piece, ...)
  
  
  |                                                    |  0%                      ── 3. Error: output is vectorized with correct lengths (@test_geocode.R#75)  ───
  $ operator is invalid for atomic vectors
  Backtrace:
    1. prettymapr::geocode(cities, output = "data.frame", source = "pickpoint")
    2. plyr::adply(...)
    3. plyr::ldply(...)
    4. plyr::llply(...)
    7. prettymapr:::.fun(piece, ...)
    8. prettymapr:::geocoder_partial(row$query)
    9. prettymapr:::geocoder(...)
   10. plyr::adply(...)
   11. plyr::ldply(...)
   12. plyr::llply(...)
   15. prettymapr:::.fun(piece, ...)
  
  ── 4. Error: output is vectorized with correct lengths (@test_geocode.R#75)  ───
  argument is of length zero
  Backtrace:
   1. prettymapr::geocode(cities, output = "data.frame", source = "pickpoint")
   2. plyr::adply(...)
   3. plyr::ldply(...)
   4. plyr::llply(...)
   5. progress$term()
   7. utils:::close.txtProgressBar(txt)
   8. con$kill()
  
  ── 5. Error: invalid parameters are detected (@test_geocode.R#101)  ────────────
  $ operator is invalid for atomic vectors
  Backtrace:
    1. testthat::expect_message(...)
    6. prettymapr::geocode("something", messaging = TRUE)
    7. plyr::adply(...)
    8. plyr::ldply(...)
    9. plyr::llply(...)
   12. prettymapr:::.fun(piece, ...)
   13. prettymapr:::geocoder_partial(row$query)
   14. prettymapr:::geocoder(...)
   15. plyr::adply(...)
   16. plyr::ldply(...)
   17. plyr::llply(...)
   20. prettymapr:::.fun(piece, ...)
  
  ── 6. Error: mesages are printed when defaults are guessed (@test_geocode.R#110)
  $ operator is invalid for atomic vectors
  Backtrace:
    1. testthat::expect_message(geocode("something"), "Using default API key for pickpoint.io.")
    6. prettymapr::geocode("something")
    7. plyr::adply(...)
    8. plyr::ldply(...)
    9. plyr::llply(...)
   12. prettymapr:::.fun(piece, ...)
   13. prettymapr:::geocoder_partial(row$query)
   14. prettymapr:::geocoder(...)
   15. plyr::adply(...)
   16. plyr::ldply(...)
   17. plyr::llply(...)
   20. prettymapr:::.fun(piece, ...)
  
  
  |                                                    |  0%                      ── 7. Error: vectors that contain zero-length input don't screw up the query / s
  $ operator is invalid for atomic vectors
  Backtrace:
    1. prettymapr::geocode(cities)
    2. plyr::adply(...)
    3. plyr::ldply(...)
    4. plyr::llply(...)
    7. prettymapr:::.fun(piece, ...)
    8. prettymapr:::geocoder_partial(row$query)
    9. prettymapr:::geocoder(...)
   10. plyr::adply(...)
   11. plyr::ldply(...)
   12. plyr::llply(...)
   15. prettymapr:::.fun(piece, ...)
  
  ── 8. Error: vectors that contain zero-length input don't screw up the query / s
  argument is of length zero
  Backtrace:
   1. prettymapr::geocode(cities)
   2. plyr::adply(...)
   3. plyr::ldply(...)
   4. plyr::llply(...)
   5. progress$term()
   7. utils:::close.txtProgressBar(txt)
   8. con$kill()
  
  ── 9. Error: progress bar is hidden when appropriate (@test_geocode.R#148)  ────
  $ operator is invalid for atomic vectors
  Backtrace:
    1. testthat::expect_output(geocode(cities, key = "yxsN6E8EYYHFF_xsa_uL"))
   10. prettymapr::geocode(cities, key = "yxsN6E8EYYHFF_xsa_uL")
   11. plyr::adply(...)
   12. plyr::ldply(...)
   13. plyr::llply(...)
   16. prettymapr:::.fun(piece, ...)
   17. prettymapr:::geocoder_partial(row$query)
   18. prettymapr:::geocoder(...)
   19. plyr::adply(...)
   20. plyr::ldply(...)
   21. plyr::llply(...)
   24. prettymapr:::.fun(piece, ...)
  
  ── 10. Error: progress bar is hidden when appropriate (@test_geocode.R#148)  ───
  argument is of length zero
  Backtrace:
    1. testthat::expect_output(geocode(cities, key = "yxsN6E8EYYHFF_xsa_uL"))
   10. prettymapr::geocode(cities, key = "yxsN6E8EYYHFF_xsa_uL")
   11. plyr::adply(...)
   12. plyr::ldply(...)
   13. plyr::llply(...)
   14. progress$term()
   16. utils:::close.txtProgressBar(txt)
   17. con$kill()
  
  ── 11. Error: setting the default source changes the source (@test_geocode.R#161
  $ operator is invalid for atomic vectors
  Backtrace:
    1. testthat::expect_equal(geocode("wolfville ns")$source, default_source)
    4. prettymapr::geocode("wolfville ns")
    5. plyr::adply(...)
    6. plyr::ldply(...)
    7. plyr::llply(...)
   10. prettymapr:::.fun(piece, ...)
   11. prettymapr:::geocoder_partial(row$query)
   12. prettymapr:::geocoder(...)
   13. plyr::adply(...)
   14. plyr::ldply(...)
   15. plyr::llply(...)
   18. prettymapr:::.fun(piece, ...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 59 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 11 ]
  1. Error: geocode output is consistent (@test_geocode.R#8) 
  2. Error: emptys and nulls produce the correct output (@test_geocode.R#65) 
  3. Error: output is vectorized with correct lengths (@test_geocode.R#75) 
  4. Error: output is vectorized with correct lengths (@test_geocode.R#75) 
  5. Error: invalid parameters are detected (@test_geocode.R#101) 
  6. Error: mesages are printed when defaults are guessed (@test_geocode.R#110) 
  7. Error: vectors that contain zero-length input don't screw up the query / source columns (@test_geocode.R#136) 
  8. Error: vectors that contain zero-length input don't screw up the query / source columns (@test_geocode.R#136) 
  9. Error: progress bar is hidden when appropriate (@test_geocode.R#148) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted