Running ‘testthat.R’ [2s/347s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsoi)
  > 
  > test_check("rsoi")
  ── 1. Error: Does download_soi download a data.frame? (@test_download_.R#4)  ───
  HTTP error 502.
  1: expect_is(download_enso(climate_idx = "soi"), "data.frame") at testthat/test_download_.R:4
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: download_enso(climate_idx = "soi")
  5: rsoi::download_soi()
  6: readr::read_csv("https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv", 
         skip = 2, col_names = c("Date", "SOI"))
  7: read_delimited(file, tokenizer, col_names = col_names, col_types = col_types, locale = locale, 
         skip = skip, comment = comment, n_max = n_max, guess_max = guess_max, progress = progress)
  8: read_connection(file)
  9: open(con, "rb")
  10: open.connection(con, "rb")
  
  ── 2. Error: Does download_enso() download a data.frame? (@test_download_enso.R#
  HTTP error 502.
  1: expect_is(download_enso(), "data.frame") at testthat/test_download_enso.R:4
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: download_enso()
  5: rsoi::download_soi()
  6: readr::read_csv("https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv", 
         skip = 2, col_names = c("Date", "SOI"))
  7: read_delimited(file, tokenizer, col_names = col_names, col_types = col_types, locale = locale, 
         skip = skip, comment = comment, n_max = n_max, guess_max = guess_max, progress = progress)
  8: read_connection(file)
  9: open(con, "rb")
  10: open.connection(con, "rb")
  
  ── 3. Error: Test whether SOI values have not changed from February 2017 (@test_
  HTTP error 502.
  1: download_enso() at testthat/test_download_enso.R:11
  2: rsoi::download_soi()
  3: readr::read_csv("https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv", 
         skip = 2, col_names = c("Date", "SOI"))
  4: read_delimited(file, tokenizer, col_names = col_names, col_types = col_types, locale = locale, 
         skip = skip, comment = comment, n_max = n_max, guess_max = guess_max, progress = progress)
  5: read_connection(file)
  6: open(con, "rb")
  7: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 2 SKIPPED: 1 FAILED: 3
  1. Error: Does download_soi download a data.frame? (@test_download_.R#4) 
  2. Error: Does download_enso() download a data.frame? (@test_download_enso.R#4) 
  3. Error: Test whether SOI values have not changed from February 2017 (@test_download_enso.R#11) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In if (is.null(package)) { :
    closing unused connection 3 (https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv)
  Execution halted