test_that("Subsample uses denser steps early and wider steps later",{
d = simulate_breathtest_data(n_records = 1, first_minute = 1, step_minute = 1)$data
comment(d) = "comment"
d1 = subsample_data(cleanup_data(d), 15)
tt = as.integer(table(diff(d1$minute)))
expect_equal(comment(d), "comment")
expect_equal(tt, c(6,3,1,4))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.