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 tmuxr
such
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
reference to learn
more about what tmuxr
has to offer.
tmuxr
can be installed from this repository using remotes
:
# install.packages("remotes")
remotes::install_github("jeroenjanssens/tmuxr")
We regularly test tmuxr
on Ubuntu with tmux versions 2.1 through 3.4
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.
The tmuxr
package is licensed under the MIT License.