context("snr")
s <- createMassPeaks(mass=1:10, intensity=11:20, snr=rep(2, 10))
test_that("snr", {
expect_identical(snr(s), rep(2, 10))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.