library(ggplot2)
library(testthat)
library(magrittr)
# Teste deve sair bem sucedido
test_that("silent when barras succeeds", {
base <- (diamonds)
working.plot <- base %>% dplyr::count(cut) %>%
dplyr::mutate(prop = n/sum(n), lab = pct(prop)) %>% barras()
expect_silent(print(working.plot))
} )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.