Skip to contents

Runs a lightweight diagnostic for the R version, terminal, reticulate virtualenv, and Python shim import. This is the first command to run when a new machine cannot launch an rtui app.

Usage

rtui_doctor(envname = "r-rtui", check_terminal = TRUE, check_shim = TRUE)

Arguments

envname

Name of the rtui virtualenv. Defaults to "r-rtui".

check_terminal

Whether to check that the current session is a real terminal. Set to FALSE in CI or non-interactive diagnostics.

check_shim

Whether to try importing the Python shim.

Value

Invisibly, a named list of diagnostic results.

Examples

if (FALSE) { # \dontrun{
rtui_doctor()
rtui_doctor(check_terminal = FALSE)
} # }