gselect.list: Select Items from a List

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/utils.R

Description

Select item(s) from a character vector.

Usage

1
gselect.list(list, multiple = TRUE, title = NULL, width = 200, height = 500, ...)

Arguments

list

character vector. A list of items.

multiple

logical: can more than one item be selected?

title

optional character string for window title.

width

integer. Width of the widget.

height

integer. Height of the widget.

...

Not used currently.

Details

GTK version of select.list.

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.

Note

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

Author(s)

John Verzani and Ronggui HUANG

See Also

select.list

Examples

1
2
3
4
## Not run: 
select.list(sort(.packages(all.available = TRUE)))

## End(Not run)

Ronggui/RQDA documentation built on Nov. 22, 2021, 12:21 a.m.