demo/rp.listbox.r

panel <- rp.control(option="Option 1")
rp.listbox(panel, option, title="Choose", labels=list("File","Option 1","Option 2","Option 3","Exit"), rows=3, action=function(panel){ rp.messagebox(panel$option); print(panel$option); panel }) # can also use initval="Option 1", 

Try the rpanel package in your browser

Any scripts or data that you put into this service are public.

rpanel documentation built on Feb. 16, 2023, 10:37 p.m.