demo/rp.textentry.r

callback <- function(panel)
{
  print(panel$option)
}

panel1 <- rp.control()
rp.textentry(panel1, option, labels="Your name:", initval="-", action=callback, width=40)

panel2 <- rp_window()
rp.textentry(panel2, option, labels=c("Your height:", "Your weight:"), initval=c("H", "W"), action=callback, width=20)

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.