fnmate_below | R Documentation |
Create a definition below for the function used at index.
fnmate_below(text, index)
text |
some text from a source file |
index |
an index into text indicating the cursor position. |
Given some text and an index into the text, this function generates text containing a definition for the function used at the index. An error is thrown if no function is found.
By default the function is created in the './R' folder. This can be changed with the 'fnmate_folder' option.
By default the function body contains only NULL. This can be changed with the 'fnmate_placeholder' option.
This function is not intended to be used directly but by the fnmate front end - either Emacs or RStudio.
text containing function definition.
Miles McBain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.