test_that() calllifecycle::badge("experimental")
Inserts code for calling testthat::test_that().
See `Details` for how to set a key command.
initializeTestthatAddin(insert = TRUE, indentation = NULL)Inserts code for calling
testthat::test_that().
Returns NULL invisibly.
Whether to insert the code via
rstudioapi::insertText()
or return it. (Logical)
N.B. Mainly intended for testing the addin programmatically.
Indentation of the code. (Numeric)
N.B. Mainly intended for testing the addin programmatically.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
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.
Other addins:
assertCollectionAddin(),
dputSelectedAddin(),
initializeGXSFunctionAddin(),
insertExpectationsAddin(),
navigateTestFileAddin(),
wrapStringAddin()