library(recollections)
sb <- recollections::stringBuilder()
push(sb, 'foo')
expect_equal(toString(sb), 'foo')
push(sb, 'bar')
expect_equal(toString(sb), 'foobar')
sb <- recollections::stringBuilder('foo')
expect_equal(toString(sb), 'foo')
push(sb, 'bar')
expect_equal(toString(sb), 'foobar')
sb <- recollections::stringBuilder('foo', 'bar')
expect_equal(toString(sb), 'foobar')
push(sb, 'baz')
expect_equal(toString(sb), 'foobarbaz')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.