context(".localMaxima")
y <- c(1, 1, 2, 1, 1, 3, 4)
set.seed(1)
b <- rnorm(5e4)
test_that(".localMaxima", {
expect_identical(MALDIquant:::.localMaxima(y, 1),
c(T, F, T, F, F, F, T))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.