Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("webuse")
  > 
  > test_check("webuse")
  1. Error: basic download (@tests.R#4) ------------------------------------------
  Failed to parse file: Invalid file, or file has unsupported features.
  1: expect_is(webuse("auto"), "data.frame") at testthat/tests.R:4
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: webuse("auto")
  5: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  6: df_parse_dta_raw(spec, encoding)
  
  2. Error: download version (@tests.R#8) ----------------------------------------
  Failed to parse file: Invalid file, or file has unsupported features.
  1: expect_is(webuse("auto", version = 14), "data.frame") at testthat/tests.R:8
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: webuse("auto", version = 14)
  5: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  6: df_parse_dta_raw(spec, encoding)
  
  3. Error: data.frame added to .GlobalEnv (@tests.R#13) -------------------------
  Failed to parse file: Invalid file, or file has unsupported features.
  1: webuse("lifeexp") at testthat/tests.R:13
  2: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta"))
  3: df_parse_dta_raw(spec, encoding)
  
  4. Error: data.frame added to specified environment (@tests.R#19) --------------
  Failed to parse file: Invalid file, or file has unsupported features.
  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: df_parse_dta_raw(spec, encoding)
  
  testthat results ================================================================
  OK: 0 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