Running 'testthat.R' [212s]
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)  ---
  cannot open the connection
  1: expect_is(download_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_soi()
  5: read.csv("https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv", 
         skip = 2, stringsAsFactors = FALSE, col.names = c("Date", "SOI"))
  6: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  7: file(file, "rt")
  
  -- 2. Error: Does download_nao download a data.frame? (@test_download_.R#24)  --
  cannot open the connection
  1: expect_is(download_nao(), "data.frame") at testthat/test_download_.R:24
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: download_nao()
  5: read.csv(nao_link, col.names = c("Date", "NAO"), skip = 1, stringsAsFactors = FALSE)
  6: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  7: file(file, "rt")
  
  -- 3. Error: Does download_ao download a data.frame? (@test_download_.R#31)  ---
  cannot open the connection
  1: expect_is(download_ao(), "data.frame") at testthat/test_download_.R:31
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: download_ao()
  5: read.csv(ao_link, col.names = c("Date", "AO"), skip = 1, stringsAsFactors = FALSE)
  6: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  7: file(file, "rt")
  
  -- 4. Error: Does download_enso() download a data.frame? (@test_download_enso.R#
  cannot open the connection
  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: download_soi()
  6: read.csv("https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv", 
         skip = 2, stringsAsFactors = FALSE, col.names = c("Date", "SOI"))
  7: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  8: file(file, "rt")
  
  -- 5. Error: Test whether SOI values have not changed from February 2017 (@test_
  cannot open the connection
  1: download_enso() at testthat/test_download_enso.R:11
  2: download_soi()
  3: read.csv("https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/data.csv", 
         skip = 2, stringsAsFactors = FALSE, col.names = c("Date", "SOI"))
  4: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  5: file(file, "rt")
  
  == testthat results  ===========================================================
  OK: 7 SKIPPED: 1 FAILED: 5
  1. Error: Does download_soi download a data.frame? (@test_download_.R#4) 
  2. Error: Does download_nao download a data.frame? (@test_download_.R#24) 
  3. Error: Does download_ao download a data.frame? (@test_download_.R#31) 
  4. Error: Does download_enso() download a data.frame? (@test_download_enso.R#4) 
  5. Error: Test whether SOI values have not changed from February 2017 (@test_download_enso.R#11) 
  
  Error: testthat unit tests failed
  Execution halted