context("getSx")
test_that("test getSx", {
y<-rnorm(5,1)
z<- c(1,2,1,1,2)
expect_equal( length(getSx(y,z,k=3)), 3)
expect_equal( class(getSx(y,z,k=3)), "numeric")
expect_error( getSx(y, z,k=1))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.