Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getYes

Prompt the User to Choose Yes or No


Description

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

Usage

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

Examples

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

## End(Not run)

PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.