run_fn: Run a Function

Description Usage Examples

View source: R/Console_Add-Ins.R

Description

Run a user-set function in the background at the press of a button. If the function has not been set, this function will print out some code to help the user get started. Once the function has been set, running this add-in will execute the set function.

Usage

1

Examples

1
2
3
4
5
6
7
# To make use of this add-in, run it (preferably by assigning a shortcut),
#   and it will print run a commented out line which will allow you to set a function.
# Once the `.KO_fn` object exists, running this add-in will execute the set function.

.KO_fn <- function() mean(1:10)
.KO_fn
.KO_fn()

KO112/KO documentation built on Oct. 2, 2020, 9:21 a.m.