context('dplyr-extras')
test_that('with_colnames renames columns as expected', {
a <- tibble(v1 = c(20, 21), v2 = c(8.5, 5)) %>%
with_colnames('age', 'grade')
expect_equal(colnames(a), c('age', 'grade'))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.