open_test | R Documentation |
For use in package development. Open a file in tests/testthat/ for the object called "test" If the file doesn't already exist, create it. If it already exists, open it for editing.
open_test(test, pkg = basename(getwd()), engine = "testthat")
test |
the object you want to write a test for |
pkg |
to pass for the knitr environment. Defaults to current working directory |
engine |
if you are using something other than testthat, you can save this test to "tests/ENGINE/" |
Returns NULL invisibly. Side-effect: opens the test file in the editor.
# open_test(lm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.