pickItems: Function that builds a widget to allow users to select items...

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

Description

Given a vector of characters, this function creates a widget containing list box to allow users to visually select elements from the vector.

Usage

1
pickItems(items, title1 = "Items to pick", title2 = "Picked items")

Arguments

items

items a vector for the available source elements to be selected

title1

title1 a character string for the title of the list box that shows the list of items to be selected from

title2

title2 a character string for the title of the list box that shows the items that have been selected

Details

This function is to provide visual support to other functions and thus may not have much use otherwise.

Value

This function returns a vector of select items.

Author(s)

Jianhua Zhang

References

R tcltk

See Also

dataViewer

Examples

1
2
3
4
options <- paste("Option", 1:10, sep = "")
if(interactive()){
    pickItems(options)
}

Example output

Loading required package: widgetTools
Loading required package: tcltk
Loading required package: DynDoc
Loading required package: tools
Warning message:
no DISPLAY variable so Tk is not available 

tkWidgets documentation built on Nov. 8, 2020, 5:17 p.m.