Running ‘testthat.R’ [1s/92s]
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)  ───
  replacement has 1 row, data has 0
  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: `$<-`(`*tmp*`, "Date", value = structure(NA_real_, class = "Date"))
  7: `$<-.data.frame`(`*tmp*`, "Date", value = structure(NA_real_, class = "Date"))
  8: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", "replacement has %d rows, data has %d"), 
         N, nrows), domain = NA)
  
  ── 2. Error: Does download_oni download a data.frame? (@test_download_.R#11)  ──
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_is(download_enso(climate_idx = "oni"), "data.frame") at testthat/test_download_.R:11
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: download_enso(climate_idx = "oni")
  5: rsoi::download_oni()
  6: readr::read_table("http://www.cpc.ncep.noaa.gov/products/analysis_monitoring/ensostuff/detrend.nino34.ascii.txt", 
         skip = 1, col_names = c("Year", "Month", "TOTAL", "ClimAdjust", "dSST3.4"))
  7: datasource(file, skip = skip)
  8: datasource_connection(file, skip, comment)
  9: datasource_raw(read_connection(path), skip, comment = comment)
  10: new_datasource("raw", text, skip = skip, comment = comment)
  11: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  12: read_connection(path)
  13: open(con, "rb")
  14: open.connection(con, "rb")
  
  ── 3. Error: Does download_enso() download a data.frame? (@test_download_enso.R#
  Timeout was reached: Connection timed out after 10001 milliseconds
  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_oni()
  6: readr::read_table("http://www.cpc.ncep.noaa.gov/products/analysis_monitoring/ensostuff/detrend.nino34.ascii.txt", 
         skip = 1, col_names = c("Year", "Month", "TOTAL", "ClimAdjust", "dSST3.4"))
  7: datasource(file, skip = skip)
  8: datasource_connection(file, skip, comment)
  9: datasource_raw(read_connection(path), skip, comment = comment)
  10: new_datasource("raw", text, skip = skip, comment = comment)
  11: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  12: read_connection(path)
  13: open(con, "rb")
  14: open.connection(con, "rb")
  
  ── 4. Error: Test whether SOI values have not changed from February 2017 (@test_
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: download_enso() at testthat/test_download_enso.R:11
  2: rsoi::download_oni()
  3: readr::read_table("http://www.cpc.ncep.noaa.gov/products/analysis_monitoring/ensostuff/detrend.nino34.ascii.txt", 
         skip = 1, col_names = c("Year", "Month", "TOTAL", "ClimAdjust", "dSST3.4"))
  4: datasource(file, skip = skip)
  5: datasource_connection(file, skip, comment)
  6: datasource_raw(read_connection(path), skip, comment = comment)
  7: new_datasource("raw", text, skip = skip, comment = comment)
  8: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  9: read_connection(path)
  10: open(con, "rb")
  11: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 2 SKIPPED: 1 FAILED: 4
  1. Error: Does download_soi download a data.frame? (@test_download_.R#4) 
  2. Error: Does download_oni download a data.frame? (@test_download_.R#11) 
  3. Error: Does download_enso() download a data.frame? (@test_download_enso.R#4) 
  4. Error: Test whether SOI values have not changed from February 2017 (@test_download_enso.R#11) 
  
  Error: testthat unit tests failed
  Execution halted