Description Usage Arguments Details
View source: R/assign_defaults.R
Set arguments for a function to their default values in the global
environment. The addin takes fun
from current text selection.
1 2 3 |
fun |
A function object or a character string naming the function. See
|
The goal is to make it easier to walk through the function body as top-level
code for development and debugging. Arguments with no defaults and ...
are silently ignored. In order for this to work, the function needs to be
defined through one of these methods:
RStudio: Run the current function definition: With cursor in the function, do Ctrl+Alt+F (Windows/Linux) or Command+Option+F (Mac).
Source the file with function definition: Visit file in
RStudio editor and do Ctrl+Shift+S (Windows/Linux) or Command+Shift+S (Mac).
Or use source()
.
devtools::load_all()
: Sensible if function is part of a
package and you're developing with devtools
.
library(...)
: Sensible if function is an exported
function in an installed package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.