Skip to content

benjaminguinaudeau/systemr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systemr

The goal of systemr is to run system command outside rstudio. Sometimes Rstudio-Terminal does not behave exactly as normal terminals. For those case, systemr can be used from a normal terminal to create a local api, that will run system command.

Installation

You can install the latest development version from GitHub with:

# install.packages("devtools")
devtools::install_github("benjaminguinaudeau/systemr")

Example

Open a terminal and run. This will serve the api on the given port.

serve_cli(host = "localhost", port = 5000)

From your rstudio session, you can now run system_api, whic will execute the code in the terminal and transfer the output to rstudio.

system_api("pwd")

About

A small package that create an api to run system command outside rstudio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages