test_that("Proper regular expressions are returned", {
expect_equal(
as.character(get_tplyr_regex('format_string')),
"(a(\\+\\d+)?|(\\S+)A(\\+\\d+)?|(\\S+)X+|x+)(\\.([A|a](\\+\\d+)?|[X|x]+)?)?"
)
expect_equal(
as.character(get_tplyr_regex('format_group')),
"[^\\s\\d]*\\s*(\\-?\\d+(\\.\\d+)?)\\S*"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.