This pair of functions makes it easy to create paired R and test files,
using the convention that the tests for
R/foofy.R should live
tests/testthat/test-foofy.R. You can use them to create new files
from scratch by supplying
name, or if you use RStudio, you can call
to create (or navigate to) the paired file based on the currently open
1 2 3
Either a name without extension, or
Whether to open the file for interactive editing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.