context('formula')
# as.character.formula ----------------------------------------------------
test_that('as.character.formula works correctly', {
expect_equivalent(as.character(a ~ b + c + .), 'a ~ b + c + .')
# remove extra spaces
expect_equivalent(as.character(a ~ b + c + .), 'a ~ b + c + .')
# put in spaces?
expect_equivalent(as.character(a~b+c+.), 'a ~ b + c + .')
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.