Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > suppressPackageStartupMessages(library(prism))
  > 
  > test_check("prism")
  
  
  ***************************************
  make sure you run this 2x or less in any given day!!!!
  ****************************************
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 5 | WARN 5 | SKIP 7 | PASS 170 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-files_download.R:22:3', 'test-files_download.R:125:3',
    'test-files_download.R:189:3', 'test-files_download.R:263:3',
    'test-files_download.R:329:3', 'test-files_download.R:354:3',
    'test-prism_archive_ls.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pd_image.R:2:3'): `pd_image()` works ───────────────────────────
  Error in `.rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", 
      ...)`: Cannot create a RasterLayer object from this file.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-pd_image.R:2:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─prism::pd_image("PRISM_ppt_stable_4kmD2_19910101_bil")
   5.   ├─raster::raster(prismfile)
   6.   └─raster::raster(prismfile)
   7.     └─raster (local) .local(x, ...)
   8.       └─raster:::.rasterObjectFromFile(...)
  ── Error ('test-pd_plot_slice.R:4:3'): pd_plot_slice() works ───────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'stack': Cannot create a RasterLayer object from this file.
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-pd_plot_slice.R:4:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─prism::pd_plot_slice(...)
    5. │ └─prism::pd_stack(pd)
    6. │   ├─raster::stack(raster::raster(prismfile_fp[1]))
    7. │   ├─raster::raster(prismfile_fp[1])
    8. │   └─raster::raster(prismfile_fp[1])
    9. │     └─raster (local) .local(x, ...)
   10. │       └─raster:::.rasterObjectFromFile(...)
   11. │         └─base::stop("Cannot create a RasterLayer object from this file.")
   12. └─base::.handleSimpleError(...)
   13.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-pd_stack.R:4:3'): pd_stack() works ─────────────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'stack': Cannot create a RasterLayer object from this file.
  Backtrace:
       ▆
    1. ├─testthat::expect_s4_class(x <- pd_stack(dd), "RasterStack") at test-pd_stack.R:4:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─prism::pd_stack(dd)
    5. │ ├─raster::stack(raster::raster(prismfile_fp[1]))
    6. │ ├─raster::raster(prismfile_fp[1])
    7. │ └─raster::raster(prismfile_fp[1])
    8. │   └─raster (local) .local(x, ...)
    9. │     └─raster:::.rasterObjectFromFile(...)
   10. │       └─base::stop("Cannot create a RasterLayer object from this file.")
   11. └─base::.handleSimpleError(...)
   12.   └─base (local) h(simpleError(msg, call))
  ── Failure ('test-prism_archive_verify.R:6:3'): corrupt file is found ──────────
  expect_warning(...) not equal to "PRISM_ppt_stable_4kmD2_20120101_bil".
  Lengths differ: 3 is not 1
  ── Failure ('test-prism_archive_verify.R:13:3'): returns true when all valid ───
  prism_archive_verify("tmin", "daily") is not TRUE
  
  `actual` is a character vector ('PRISM_tmin_stable_4kmD2_19810101_bil', 'PRISM_tmin_stable_4kmD2_20110615_bil')
  `expected` is a logical vector (TRUE)
  
  [ FAIL 5 | WARN 5 | SKIP 7 | PASS 170 ]
  Error: Test failures
  Execution halted