library(dplyr)
library(stringr)
library(statar)
context("sumup")
test_that("sum_up", {
a <- cars %>% sum_up(speed)
expect_equal(nrow(cars %>% sum_up(speed)), 1)
expect_equal(nrow(cars %>% group_by(ok = speed %/% 10) %>% sum_up(dist)), 3)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.