powered by
Create a new tmux session with name name.
name
new_session( name = NULL, window_name = NULL, start_directory = NULL, width = 80, height = 24, detached = TRUE, shell_command = NULL )
A string. Name of the session. If NULL, the name determined by tmux, which is the next unused integer (by default starting at 0). Default: NULL.
NULL
tmux
A string. Name of initial window.
A string. Working directory this session is run in.
An integer. Width of initial window. Default: 80.
An integer. Height of initial window. Default: 24.
A logical. If FALSE, the R interpreter waits for the session to be killed. Default: TRUE.
FALSE
R
TRUE
A string. Shell command to be invoked when creating the session.
A tmuxr_session.
# NOT RUN { s <- new_session("foo", shell_command = "bash", height = 10) list_sessions() kill_session(s) # } # NOT RUN { # }
Run the code above in your browser using DataLab