| cli-config {cli} | R Documentation |
cli environment variables and options
These are env vars and options that usrs may set, to modify the behavior of cli.
NO_COLORSet to a nonempty value to turn off ANSI colors.
See num_ansi_colors().
R_CLI_DYNAMICSet to true, TRUE or True to assume a dynamic terminal, that supports \r.
Set to anything else to assume a non-dynamic terminal.
See is_dynamic_tty().
R_CLI_NUM_COLORSSet to a positive integer to assume a given number of colors.
See num_ansi_colors().
cli.ansiSet to true, TRUE or True to assume a terminal that supports ANSI
control sequences.
Set to anything else to assume a non-ANSI terminal.
See is_ansi_tty().
cli.default_handlerGeneral handler function for all cli conditions. See https://cli.r-lib.org/articles/semantic-cli.html#cli-messages-1
cli.dynamicSet to TRUE to assume a dynamic terminal, that supports \r.
Set to anything else to assume a non-dynamic terminal.
See is_dynamic_tty().
cli.hide_cursorWhether the cli status bar should try to hide the cursor on termianals.
Set the FALSE if the hidden cursor causes issues.
cli.hyperlinkSet to true, TRUE or True to tell cli that the terminal supports
ANSI hyperlinks.
Set to anything else to assume no hyperlink support.
See style_hyperlink().
cli.num_colorsNumber of ANSI colors. See num_ansi_colors().
cli.message_classCharacter vector of classes to add to cli's conditions.
cli.progress_bar_styleProgress bar style.
See cli_progress_styles().
cli.progress_bar_style_asciiProgress bar style on ASCII consoles.
See cli_progress_styles().
cli.progress_bar_style_unicodeProgress bar style on Unicode (UTF-8) consoles;
See cli_progress_styles().
cli.progress_clearWhether to clear terminated progress bar from the screen on dynamic terminals.
See cli_progress_bar().
cli.progress_demo_liveWhether cli_progress_demo() should show a live demo, or just record the
progress bar frames.
cli.progress_format_downloadDefault format string for download progress bars.
cli.progress_format_download_nototalDefault format string for download progress bars with unknown totals.
cli.progress_format_iteratorDefault format string for iterator progress bars.
cli.progress_format_iterator_nototalDefault format string for iterator progress bars with unknown total number
of progress units.
cli.progress_format_tasksDefault format string for tasks progress bars.
cli.progress_format_tasks_nototalDefault format string for tasks progress bars with unknown totals.
cli.progress_handlersProgress handlers to try.
See cli_progress_builtin_handlers().
cli.progress_handlers_forceProgress handlers that will always be used, even if another handler
was already selected.
See cli_progress_builtin_handlers().
cli.progress_handlers_onlyProgress handlers to force, ignoring handlers set in
cli.progress_handlers and cli.progress_handlers_force.
See cli_progress_builtin_handlers().
cli.progress_say_argsCommand line arguments for the say progress handlers.
See cli_progress_builtin_handlers().
cli.progress_say_commandExternal command to use in the say progress handler.
See cli_progress_builtin_handlers().
cli.progress_say_frequencyMinimum delay between say calls in the say progress handler.
say ignores very frequent updates, to keep the speech comprehensible.
See cli_progress_builtin_handlers().
cli.progress_show_afterDelay before showing a progress bar, in seconds. Progress bars that finish before this delay are not shown at all.
cli.spinnerDefault spinner to use, see get_spinner().
cli.spinner_asciiDefault spinner to use on ASCII terminals, see get_spinner().
cli.spinner_unicodeDefault spinner to use on Unicode terminals, see get_spinner().
cli.themeDefault cli theme, in addition to the built-in theme.
This option in intended for the package developers.
See themes and start_app().
cli_theme_darkWhether cli should assume a dark theme for the builtin theme.
See builtin_theme().
cli.unicodeWhether to assume a Unicode terminal.
If not set, then it is auto-detected.
See is_utf8_output().
cli.user_themecli user theme. This option is intended for end users. See themes.
cli.widthTerminal width to assume.
If not set, then it is auto-detected.
See console_width().
rlib_interactiveWhether to assume an interactive R session. If not set, then it is auto-detected.
widthTerminal width.
This is used on some platforms, if cli.width is not set.
These are env vars and options are for cli developers, users should not rely of them as they may change between cli releases.
ASCIICASTUsed to detect an asciicast subprocess in RStudio.
ANSICONUsed to detect ANSICON when detecting the number of ANSI colors.
CIUsed to detect if the code is running on a CI. If yes, we avoid ANSI hyperlinks.
CLI_DEBUG_BAD_ENDWhether to warn about cli_end() calls when there is no container to close.
CLI_NO_BUILTIN_THEMESet it to true to omit the builtin theme.
CLI_SPEED_TIMECan be used to speed up cli's timer. It is a factor, e.g. setting it to 2 makes cli's time go twice as fast.
CLI_TICK_TIMEHow often the cli timer should alert, in milliseconds.
CMDER_ROOTUsed to detect cmder when detecting the number of ANSI colors.
COLORTERMUsed when detecting ANSI color support.
ConEmuANSIUsed to detect ConEmu when detecting the number of ANSI colors.
EMACSUsed to detect Emacs.
INSIDE_EMACSUsed to detect Emacs.
NOT_CRANSet to true to run tests / examples / checks, that do not run on CRAN.
_R_CHECK_PACKAGE_NAME_Used to detect R CMD check.
R_BROWSERUsed to detect the RStudio build pane.
R_GUI_APP_VERSIONUsed to detect R.app on macOS, to decide if the console has ANSI control sequences.
R_PACKAGE_DIRUsed to detect if the code is running under R CMD INSTALL.
R_PDFVIEWERUsed to detect the RStudio build pane.
R_PROGRESS_NO_EXAMPLESSet to true to avoid running examples, outside of R CMD check.
RSTUDIOUsed to detect RStudio, in various functions.
RSTUDIO_CONSOLE_COLORUsed to detect the number of colors in RStudio.
See num_ansi_colors().
RSTUDIO_CONSOLE_WIDTHUsed to auto-detect console width in RStudio.
RSTUDIO_TERMUsed to detect the RStudio build pane.
TEAMCITY_VERSIONUsed to detect the TeamCity CI, to turn off ANSI hyperlinks.
TERMUsed to detect if the console has ANSI control sequences, in a terminal.
TERM_PROGRAMUsed to detect iTerm for the dark theme detection and the ANSI hyperlink support detection.
TERM_PROGRAM_VERSIONUsed to detect a suitable iTerm version for ANSI hyperlink support.
TESTTHATUsed to detect running in testthat tests.
VTE_VERSIONUsed to detect a suitable VTE version for ANSI hyperlinks.
cli__pbThis option is set to the progress bar that is being updated, when interpolatinf the format string.
cli.recordInternal option to mark the state that cli is recording messages.
crayon.colorsDeprecated option for the number of ANSI colors, that is still supported
by cli, when the new options are not set.
See num_ansi_colors().
crayon.enabledDeprecated option to turn ANSI colors on/off.
This is still supported by cli when the new options are not set.
See num_ansi_colors().
crayon.hyperlinkWhether to assume ANSI hyperlink support.
See ansi_has_hyperlink_support().
knitr.in.progressUsed to detect knitr when detecting interactive sessions and ANSI color support.
rstudio.notebook.executingUsed to detect knitr when detecting interactive sessions.