View source: R/initialize_gxs_function_addin.R
| initializeGXSFunctionAddin | R Documentation |
gxs_function() callInitializes the gxs_function() call with the arguments and default values
of the selected function.
See `Details` for how to set a key command.
initializeGXSFunctionAddin(selection = NULL, insert = TRUE, indentation = 0)
selection |
Name of function to test with N.B. Mainly intended for testing the addin programmatically. |
insert |
Whether to insert the code via
N.B. Mainly intended for testing the addin programmatically. |
indentation |
Indentation of the selection. (Numeric) N.B. Mainly intended for testing the addin programmatically. |
Parses and evaluates the selected code string
within the parent environment.
When the output is a function, it extracts the formals (arguments and default values)
and creates the initial `args_values` for gxs_function().
When the output is not a function, it throws an error.
After installing the package. Go to:
Tools >> Addins >> Browse Addins >> Keyboard Shortcuts.
Find "Initialize gxs_function()" and press its field under Shortcut.
Press desired key command, e.g. Alt+F.
Press Apply.
Press Execute.
Inserts gxs_function() call for
the selected function.
Returns NULL invisibly.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other expectation generators:
gxs_function(),
gxs_selection(),
insertExpectationsAddin()
Other addins:
assertCollectionAddin(),
dputSelectedAddin(),
initializeTestthatAddin(),
insertExpectationsAddin(),
navigateTestFileAddin(),
wrapStringAddin()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.