askUserYesNo: Ask user for a yes/no response

View source: R/askUserYesNo.R

askUserYesNoR Documentation

Ask user for a yes/no response

Description

Ask user for a yes/no response

Usage

askUserYesNo(prompt, interactive.only = TRUE)

Arguments

prompt

character() Question form prompt to display to the user without a question mark

interactive.only

logical(1) If TRUE, the function will only prompt the user when the R session is interactive. If FALSE, the function will always prompt the user.

Value

TRUE when user replies with 'yes' to prompt, FALSE when 'no'

Author(s)

Martin M.

Examples


askUserYesNo("Do you want to continue")


Bioconductor/BiocUtils documentation built on Oct. 31, 2024, 1:35 a.m.