gselect.list: Select Items from a List
Description
Select item(s) from a character vector.
Usage
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.
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.
Examples
Run this code# NOT RUN {
select.list(sort(.packages(all.available = TRUE)))
# }
Run the code above in your browser using DataLab