[R] Suggestions for inputting a date via a dialog box?

Tubin sredmonson at yahoo.com
Thu Jan 1 21:33:35 CET 2009


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:
> 
> 2008/12/31 Tubin <sredmonson at yahoo.com>:
>>
>> Hm.  This looks like a fantastic package in general... but for this
>> particular project I would rather not have to redo the entire program to
>> run
>> in Rpad.  And it is not immediately evident that I could use Rpad just
>> for
>> the function of getting values for a couple of date variables...  Or have
>> I
>> misunderstood?
> 
>  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
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/Suggestions-for-inputting-a-date-via-a-dialog-box--tp21237197p21244593.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list