powered by
Display a message prompt with "Yes" and "No" buttons.
getYes(message, title="Choice", icon="question")
message to display in prompt window.
title of prompt window.
icon to display in prompt window; options are "error", "info", "question", or "warning".
"error"
"info"
"question"
"warning"
Returns TRUE if the "Yes" button is clicked, FALSE if the "No" button is clicked.
TRUE
FALSE
showAlert, getChoice, chooseWinVal
showAlert
getChoice
chooseWinVal
# NOT RUN { local(envir=.PBSmodEnv,expr={ if(getYes("Print the number 1?")) print(1) else print("hallucination") }) # }
Run the code above in your browser using DataLab