| getYes {PBSmodelling} | R Documentation |
Display a message prompt with "Yes" and "No" buttons.
getYes(message, title="Choice", icon="question")
message |
message to display in prompt window. |
title |
title of prompt window. |
icon |
icon to display in prompt window; options are
"error", "info", "question", or "warning". |
Returns TRUE if the "Yes" button is clicked, FALSE if the "No" button is clicked.
showAlert, getChoice, chooseWinVal
## Not run:
#default settings
if(getYes("Print the number 1?"))
print(1)
## End(Not run)