Execute Command Line Programs Interactively

Execute command line programs and format results for interactive use. It is based on the package 'processx' so it does not use shell to start up the process like system() and system2(). It also provides a simpler and cleaner interface than processx::run().


Execute Command Line Programs Interactively

R-CMD-check CRAN_Status_Badge

Github: https://github.com/RTagBot/cliff

Documentation: https://rtagbot.github.io/cliff

Execute command line programs and format results for interactive use. It is based on the package ‘processx’ so it does not use shell to start up the process like system() and system2(). It also provides a simpler and cleaner interface than processx::run().

Installation

You can install the released version of cliff from CRAN with:

# (not yet released)
install.packages("cliff")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("rtagbot/cliff")

Example

git <- function(...) cliff::run("git", ...)

git("log", git("rev-parse", "--abbrev-ref", "HEAD"), "-n1")
## commit e5e82396ed5572e402d518ac7f81b94999f02136
## Author: Randy Lai <[email protected]>
## Date:   Wed Oct 27 23:54:47 2021 -0700
## 
##     improve error formating

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cliff")

0.1.2 by Randy Lai, 5 years ago


https://github.com/RTagBot/cliff


Report a bug at https://github.com/RTagBot/cliff/issues


Browse source code at https://github.com/cran/cliff


Authors: Randy Lai [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ellipsis, processx, rlang

Suggests withr, crayon, testthat


See at CRAN