test_that("iterator edge case works", {
mm <- matrix(1:4, nrow = 2)
expect_equal(
iter_mat_col_sets(mm, n_sets = 6)$nextElem(),
iterators::iapply(mm, 2)$nextElem()
)
expect_equal(iter_mat_col_sets(mm, n_sets = 1), mm)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.