open_x11: Open X11 on a display

View source: R/interface.R

open_x11R Documentation

Open X11 on a display

Description

Iterate through displays to find an X11 display to use.

Usage

open_x11(display_id = 10, max_attempts = 10)

Arguments

display_id

Starting display ID

max_attempts

Number of displays to try

Details

When reconnecting a tmux session, the R session may no longer be able to open an X11 window. In such cases, the display ID may have changed between the R session opening and the tmux session reconnecting. This function iterates over the displays until one can be used or max_attempts is reached.

Value

Invisibly returns the opened display ID.


ChristopherBarrington/helpr documentation built on Oct. 25, 2024, 9:17 a.m.