View source: R/initialize_test_that_addin.R
| initializeTestthatAddin | R Documentation |
test_that() callInserts code for calling testthat::test_that().
See `Details` for how to set a key command.
initializeTestthatAddin(insert = TRUE, indentation = NULL)
insert |
Whether to insert the code via
N.B. Mainly intended for testing the addin programmatically. |
indentation |
Indentation of the code. (Numeric) N.B. Mainly intended for testing the addin programmatically. |
After installing the package. Go to:
Tools >> Addins >> Browse Addins >> Keyboard Shortcuts.
Find "Initialize test_that()" and press its field under Shortcut.
Press desired key command, e.g. Alt+T.
Press Apply.
Press Execute.
Inserts code for calling
testthat::test_that().
Returns NULL invisibly.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other addins:
assertCollectionAddin(),
dputSelectedAddin(),
initializeGXSFunctionAddin(),
insertExpectationsAddin(),
navigateTestFileAddin(),
wrapStringAddin()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.