getYes: Prompt the User to Choose Yes or No

Description Usage Arguments Value Author(s) See Also Examples

View source: R/projectFuns.r

Description

Display a message prompt with "Yes" and "No" buttons.

Usage

1
getYes(message, title="Choice", icon="question")

Arguments

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".

Value

Returns TRUE if the "Yes" button is clicked, FALSE if the "No" button is clicked.

Author(s)

Anisa Egeli, Vancouver Island University, Nanaimo BC

See Also

showAlert, getChoice, chooseWinVal

Examples

1
2
3
4
5
6
7
## Not run: 
local(envir=.PBSmodEnv,expr={
  if(getYes("Print the number 1?"))
    print(1) else print("hallucination")
})

## End(Not run)

PBSmodelling documentation built on May 29, 2017, 7:01 p.m.