context("scalefaster")
test_that("scale and scalefaster return the same result", {
X <- matrix(1:20, 4, 5)
Y1 <- scale(X)
Y2 <- scalefaster(X)
expect_equivalent(Y1, Y2, tolerance = 1e-15, scale = 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.