test_that("round_preserve_sum", {
expect_identical(
ps_round_preserve_sum(c(0.33, 0.33, 0.33), 1),
c(0.3, 0.3, 0.4)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.