Create a new tmux window with name name
.
When the shell command completes, the window closes.
Usage
new_window(
target = NULL,
name = NULL,
focus = TRUE,
start_directory = NULL,
shell_command = NULL
)
Arguments
- target
A tmuxr_session or tmuxr_window. If
NULL
, the last session is used.- name
A string. Name of the window. If
NULL
, the name determined by the shell command. Default:NULL
.- focus
A logical. If
FALSE
, the session does not make the new window the current window. Default:TRUE
.- start_directory
A string. Working directory this window is run in.
- shell_command
A string. Shell command to be invoked when creating the window. If
NULL
, the default shell is used.
Examples
if (FALSE) {
s <- new_session()
new_window()
kill_session(s)
}