Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/etiennebr/taco

Wrap system calls in R
https://github.com/etiennebr/taco

Last synced: about 2 months ago
JSON representation

Wrap system calls in R

Awesome Lists containing this project

README

        

taco
====

Taco is a package for R that provides an interface to easily wrap system calls
and command line. You can easily chain command line arguments and provide simple
validation. Taco is in its infancy. If you see something missing, add an issue
at the top of this page.

## Example
With taco you can easily wrap system calls in a functions. This is a commit
example for git. There is a multitude of options, but let's keep it simple:

commit <- function(message = NA, all = TRUE, indir = getwd()) {
arg <- paste( "commit",
as_argument("a", all),
as_argument("m", message, mandatory = 1) # make message mandatory
)
system_dir(indir, "git", arg)
}

you can then call

commit("hello world")

## Install
to install or update your taco package you need the `devtools`package since
taco is not on CRAN.

# install.packages("devtools")
library(devtools)
install_github("taco", "etiennebr")

## Contribute
Contributions are more than welcome. Create pull requests and issues using
github.