funr {funr} | R Documentation |
Wraps Rscript in a easy to use manner, exposing all R functions from the terminal. The github page provides more details with examples, highlights and caveats.
funr(args, help_text, script_name = "funr")
args |
Should always be: |
help_text |
A simple text to be displayed describing options and usage of this interface. Supplying this, replaces the default text. |
script_name |
Name of the script. This is used in the the help text. [funr] |
https://github.com/sahilseth/funr
## show funr help
## terminal version: funr -h
funr()
## show rnorm help
## terminal version: funr -h rnorm
render_funr(funr(args=c("-h", "rnorm")))
## Generate a few random numbers
## terminal version: funr rnorm n=10
render_funr(funr(args=c("rnorm", "n=10")))