tests/testthat/test-Rosenbluth.R

context("Rosenbluth expectations")
pdf(NULL) # suppress generating any PDFs
test_that("Rosenbluth", {
  dat = c(1000, 2000, 3000, 4000, 5000)
  dat %>% Rosenbluth %>% as.numeric %>%
    expect_equal(0.2727, tolerance=.005)
})

Try the SciencesPo package in your browser

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

SciencesPo documentation built on May 29, 2017, 9:28 p.m.