test_that("Testing RcppML::nmf", {
options(RcppML.threads = 1)
A <- rsparsematrix(100, 1000, 0.1)
m <- dclust(A, min_samples = 100, min_dist = 0)
expect_equal(sum(unlist(lapply(m, function(x) length(x$samples)))) == 1000, TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.