Select item(s) from a character vector.

gselect.list(
  list,
  multiple = TRUE,
  title = NULL,
  height = getOption("widgetSize")[2],
  width = getOption("widgetSize")[1],
  ...
)

Arguments

list

character vector. A list of items.

multiple

logical: can more than one item be selected?

title

optional character string for window title.

height

integer. Height of the widget.

width

integer. Width of the widget.

...

Not used currently.

Value

A character vector of selected items with UTF-8 encoding. If no item was selected and 'OK' is clicked, it returns length 0 character vector. If 'Cancel' is clicked, '""' is returned.

Details

GTK version of select.list.

Note

The license of this function is subject to interpretation of the first author.

See also

Examples

if (FALSE) { select.list(sort(.packages(all.available = TRUE))) }