library(pacote1)
context('testando a funcao func')
teste_unitario <- func(mtcars, sd)
test_that('retorna a estrutura adequada', {
# class
expect_is(teste_unitario, 'numeric')
# names
expect_equal(names(teste_unitario), names(mtcars))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.