[R] eliminating cancel button in winDialogString call

From: Michelle Bourassa Stahl <mbstahl_at_west-inc.com>
Date: Wed, 12 Dec 2007 10:26:30 -0700

I would like to use the function winDialogString to get input from a user to a program but would like to eliminate the cancel button option and just have the OK button appear. The problem is that if a user enters data then accidently hits Cancel instead of OK, the program may either run incorrectly or quit due to the error of having NULL for a variable. I can think of some unsophisticated ways around this like testing for a NULL value from a call to winDialogString and asking the user to reenter, however the better solution would be to just eliminate the Cancel button option. If I could find the code for the function winDialogString I might be able to create my own winDialgStringNoCancel function, however when I enter winDialogString at the > in the R console, I just get the .Internal call which is of no help to me. Can anyone help?  

Michelle Bourassa Stahl


Western EcoSystems Technology, Inc.

2003 Central Avenue, Cheyenne, WY 82001




        [[alternative HTML version deleted]]

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. Received on Wed 12 Dec 2007 - 17:39:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Dec 2007 - 18:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.