test_that("Função gerar_tabela() retorna uma tibble", {
library(magrittr)
tabela <- gerar_tabela()
testthat::expect_equal(class(tabela), c("tbl_df", "tbl", "data.frame"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.