tmuxr is an R package that allows you to manage
tmux and interact with the
processes it runs. It features a pipeable API with which you can create,
control, and capture tmux sessions, windows, and panes.
The recording below demonstrates various capabilities of
as: running processes, sending keys, splitting windows, and capturing
panes. Note that normally, managing tmux and the processes it runs is
done in a detached mode, so you wouldn’t see anything, but the result
would be the same.
Have a look at the function
learn more about what
tmuxr has to offer.
tmuxr is available through CRAN and can be installed with
install.packages("tmuxr"). The package is under active development
though and the latest set of features can be obtained by installing from
this repository using
# install.packages("devtools") devtools::install_github("datascienceworkshops/tmuxr")
We regularly test
tmuxr on Ubuntu with tmux versions 2.1 through 3.1b and on macOS with
the latest version of tmux provided by Homebrew.
tmuxr might work on
Windows using Cygwin or WSL, but we haven’t tested this.
tmuxr package is licensed under the MIT License.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.