ui: User interface

Description Usage Arguments Details Value

Description

The ui_ functions can be broken down into four main categories:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ui_line(x, .envir = parent.frame())

ui_todo(x, .envir = parent.frame())

ui_done(x, .envir = parent.frame())

ui_fail(x, .envir = parent.frame())

ui_code_block(x, copy = interactive(), .envir = parent.frame())

ui_stop(x, .envir = parent.frame())

ui_warn(x, .envir = parent.frame())

ui_yeah(x, .envir = parent.frame())

ui_nope(x, .envir = parent.frame())

ui_select(x, options, .envir = parent.frame())

ui_field(x)

ui_value(x)

ui_path(x, base = NULL)

ui_code(x)

Arguments

x

A character vector.

For block styles, conditions, and questions, each element of the vector becomes a line, and the result is processed by glue::glue(). For inline styles, each element of the vector becomes an entry in a comma separated list.

.envir

Used to ensure that glue::glue() gets the correct environment. For expert use only.

copy

If TRUE, the session is interactive, and the clipr package is installed, will copy the code block to the clipboard.

base

If specified, paths will be displayed relative to this path.

Details

Value

The block styles, conditions, and questions are called for their side-effect. The inline styles return a string.


CorradoLanera/goldrake documentation built on May 30, 2019, 3:07 a.m.