Running ‘testthat.R’ [3s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsoi)
  > 
  > test_check("rsoi")
  1. Error: Does download_npgo download a data.frame? (@test_download_.R#18) -----
  HTTP error 403.
  1: expect_is(download_enso(climate_idx = "npgo"), "data.frame") at testthat/test_download_.R:18
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: download_enso(climate_idx = "npgo")
  5: rsoi::download_npgo()
  6: readr::read_table("http://www.o3d.org/npgo/data/NPGO.txt", comment = "#", col_names = c("Year", 
         "Month", "NPGO"))
  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")
  
  2. Error: Does download_enso() download a data.frame? (@test_download_enso.R#4) 
  HTTP error 403.
  1: expect_is(download_enso(), "data.frame") at testthat/test_download_enso.R:4
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: download_enso()
  5: rsoi::download_npgo()
  6: readr::read_table("http://www.o3d.org/npgo/data/NPGO.txt", comment = "#", col_names = c("Year", 
         "Month", "NPGO"))
  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: Test whether SOI values have not changed from February 2017 (@test_download_enso.R#11) 
  HTTP error 403.
  1: download_enso() at testthat/test_download_enso.R:11
  2: rsoi::download_npgo()
  3: readr::read_table("http://www.o3d.org/npgo/data/NPGO.txt", comment = "#", col_names = c("Year", 
         "Month", "NPGO"))
  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: 3
  1. Error: Does download_npgo download a data.frame? (@test_download_.R#18) 
  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 messages:
  1: In cenv$ftypes :
    closing unused connection 3 (http://www.o3d.org/npgo/data/NPGO.txt)
  2: closing unused connection 3 (http://www.o3d.org/npgo/data/NPGO.txt) 
  Execution halted