tests/testthat/trump_approval_polls_538.R

context("Getting Trump approval polls from FiveThirtyEightscores")
library(politicaldata)


# get_senate_nominate
test_that("trump_approval_polls_538() outputs non-empty dataset", {
  expect_is(trump_approval_polls_538(),class = "data.frame")
})

Try the politicaldata package in your browser

Any scripts or data that you put into this service are public.

politicaldata documentation built on June 17, 2019, 9:02 a.m.