Running ‘testthat.R’ [1s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("politicaldata")
  Loading required package: politicaldata
  ── 1. Error: get_house_nominate() outputs non-empty dataset (@test-get_house_nom
  cannot open the connection to 'https://voteview.com/static/data/out/members/H116_members.csv'
  1: expect_is(get_house_nominate(116), class = "data.frame") at testthat/test-get_house_nominate.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_house_nominate(116)
  5: as.data.frame(read.csv(url(link), stringsAsFactors = F, encoding = "UTF-8"))
  6: read.csv(url(link), stringsAsFactors = F, encoding = "UTF-8")
  7: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  8: open(file, "rt")
  9: open.connection(file, "rt")
  
  ── 2. Error: get_senate_nominate() outputs non-empty dataset (@test-get_senate_n
  cannot open the connection to 'https://voteview.com/static/data/out/members/S116_members.csv'
  1: expect_is(get_senate_nominate(116), class = "data.frame") at testthat/test-get_senate_nominate.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_senate_nominate(116)
  5: as.data.frame(read.csv(url(link), stringsAsFactors = F, encoding = "UTF-8"))
  6: read.csv(url(link), stringsAsFactors = F, encoding = "UTF-8")
  7: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  8: open(file, "rt")
  9: open.connection(file, "rt")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 WARNINGS: 2 FAILED: 2
  1. Error: get_house_nominate() outputs non-empty dataset (@test-get_house_nominate.R#7) 
  2. Error: get_senate_nominate() outputs non-empty dataset (@test-get_senate_nominate.R#7) 
  
  Error: testthat unit tests failed
  Execution halted