Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("webuse")
  > 
  > test_check("webuse")
  -- 1. Error: basic download (@tests.R#4)  --------------------------------------
  cannot open the connection
  1: expect_is(webuse("auto"), "data.frame") at testthat/tests.R:4
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: webuse("auto")
  5: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  6: readr::datasource(file)
  7: datasource_connection(file, skip, comment)
  8: datasource_raw(read_connection(path), skip, comment = comment)
  9: new_datasource("raw", text, skip = skip, comment = comment)
  10: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  11: read_connection(path)
  12: open(con, "rb")
  13: open.connection(con, "rb")
  
  -- 2. Error: download version (@tests.R#8)  ------------------------------------
  cannot open the connection
  1: expect_is(webuse("auto", version = 14), "data.frame") at testthat/tests.R:8
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: webuse("auto", version = 14)
  5: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  6: readr::datasource(file)
  7: datasource_connection(file, skip, comment)
  8: datasource_raw(read_connection(path), skip, comment = comment)
  9: new_datasource("raw", text, skip = skip, comment = comment)
  10: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  11: read_connection(path)
  12: open(con, "rb")
  13: open.connection(con, "rb")
  
  -- 3. Error: data.frame added to .GlobalEnv (@tests.R#13)  ---------------------
  cannot open the connection
  1: webuse("lifeexp") at testthat/tests.R:13
  2: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  3: readr::datasource(file)
  4: datasource_connection(file, skip, comment)
  5: datasource_raw(read_connection(path), skip, comment = comment)
  6: new_datasource("raw", text, skip = skip, comment = comment)
  7: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  8: read_connection(path)
  9: open(con, "rb")
  10: open.connection(con, "rb")
  
  -- 4. Error: data.frame added to specified environment (@tests.R#19)  ----------
  cannot open the connection
  1: webuse("lifeexp", envir = e) at testthat/tests.R:19
  2: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  3: readr::datasource(file)
  4: datasource_connection(file, skip, comment)
  5: datasource_raw(read_connection(path), skip, comment = comment)
  6: new_datasource("raw", text, skip = skip, comment = comment)
  7: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  8: read_connection(path)
  9: open(con, "rb")
  10: open.connection(con, "rb")
  
  == testthat results  ===========================================================
  OK: 4 SKIPPED: 0 FAILED: 4
  1. Error: basic download (@tests.R#4) 
  2. Error: download version (@tests.R#8) 
  3. Error: data.frame added to .GlobalEnv (@tests.R#13) 
  4. Error: data.frame added to specified environment (@tests.R#19) 
  
  Error: testthat unit tests failed
  Execution halted
  Warning messages:
  1: closing unused connection 6 (http://www.stata-press.com/data/r14/lifeexp.dta) 
  2: closing unused connection 5 (http://www.stata-press.com/data/r14/lifeexp.dta)