Skip to content

Suggestions for inputting a date via a dialog box?

3 messages · Barry Rowlingson, Tubin, Gabor Grothendieck

#
2008/12/31 Tubin <sredmonson at yahoo.com>:
If this is for running on a Unix-based system you could install
xdialog and use the calendar box widget:

http://xdialog.free.fr/

 but there is no windows version as far as I can see.

 You might be able to use Perl/Tk and Tk-DateEntry on Windows:

http://search.cpan.org/~srezic/Tk-DateEntry-1.38/DateEntry.pm

 but that would require Perl, Perl/Tk, and a way of calling that from
R (probably using system()).

 You could build something simpler in pure R using library(tcltk) -
the easiest thing to do would probably be three drop-down widgets for
day, month, year. Building a full calendar widget might be tricky...

Barry
#
For this particular situation, a dialog box with separate entry for month,
day, and year might be the best solution.  Thanks.

The user is on a unix-based machine (a Mac with OS 10.4x) but I am expecting
him to upgrade to Leopard before long.  So I'm already struggling with TclTk
issues with him.
Barry Rowlingson wrote:

  
    
#
Try this:

library(fgui)
gui(function(year, month, day) as.Date(paste(year, month, day, sep = "-")))
On Thu, Jan 1, 2009 at 3:33 PM, Tubin <sredmonson at yahoo.com> wrote: