new_window: Create a new tmux window

View source: R/window.R

new_windowR Documentation

Create a new tmux window

Description

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.

Value

A tmuxr_window.

Examples

## Not run: 
s <- new_session()
new_window()
kill_session(s)

## End(Not run)


datascienceworkshops/tmuxr documentation built on April 26, 2024, 5:26 a.m.