Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need date picker for R application

Tags:

r

datepicker

I am searching for a simple date picker to use with R. I can find many pickers written in other languages, but I would rather not mix languages if at all possible. Does anyone know of a R package which provides this functionality?

like image 457
lightkeeper Avatar asked Nov 08 '25 01:11

lightkeeper


1 Answers

If you don't mind installing gWidgets and gWidgetstcltk you have this:

library(gWidgetstcltk)
options(guiToolkit="tcltk")
#    
pickDate <- function() {
  date <- NULL
  dlg <- gbasicdialog(handler=function(...) date <<- svalue(calendar))
  calendar <- gcalendar(cont=dlg)
  visible(dlg, set=TRUE)
  date
}
like image 197
jverzani Avatar answered Nov 10 '25 15:11

jverzani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!