winDialog(utils)
winDialog()所属R语言包:utils
Dialog Boxes under Windows
在Windows的对话框
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Put up a Windows dialog box to communicate with the user. There are various types, either for the user to select from a set of buttons or to edit a string.
提出了一个Windows对话框与用户沟通。有多种类型,可以为用户选择一组按钮或编辑字符串。
用法----------Usage----------
winDialog(type = c("ok", "okcancel", "yesno", "yesnocancel"),
message)
winDialogString(message, default)
参数----------Arguments----------
参数:type
character. The type of dialog box. It will have the buttons implied by its name.
字符。对话框类型。这将有它的名字所暗示的按钮。
参数:message
character. The information field of the dialog box. Limited to 255 chars (by Windows, checked by R).
字符。信息领域的对话框。限于255个字符(由Windows检查,按R)。
参数:default
character. The default string.
字符。默认字符串。
值----------Value----------
For winDialog a character string giving the name of the button pressed (in capitals) or NULL (invisibly) if the user had no choice.
winDialog给该按钮的名称字符串按下(首都)或NULL(不可见),如果用户别无选择。
For winDialogString a string giving the contents of the text box when Ok was pressed, or NULL if Cancel was pressed.
winDialogString一个字符串,文本框的内容时Ok被按下,或NULL如果Cancel按下。
注意----------Note----------
The standard keyboard accelerators work with these dialog boxes: where appropriate Return accepts the default action, Esc cancels and the underlined initial letter (Y or N) can be used.
标准键盘加速器的工作与这些对话框:酌情Return接受默认的动作,Esc取消下划线的首字母(Y或N)可以用来。
参见----------See Also----------
winMenuAdd<br> file.choose to select a file<br> package windlgs in the package source distribution for ways to
winMenuAdd参考file.choose选择一个文件参考包windlgs包源分布的方法
举例----------Examples----------
## Not run: winDialog("yesno", "Is it OK to delete file blah")[#不运行:winDialog(“yesno”,“是否确定删除文件等等)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|