funr {funr} | R Documentation |
funr: providing a simple command-line interface to R functions
Description
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.
Usage
funr(args, help_text, script_name = "funr")
Arguments
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] |
Source
https://github.com/sahilseth/funr
Examples
## 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")))
[Package funr version 0.3.2 Index]