ask_yn {bayescount}R Documentation

TRUE OR FALSE INPUT FROM USER

Description

A simple function to detect input from the user, and keep prompting until a response matching 'yes' or 'no' is given. Used by the function 'bayescount'.

Usage

ask_yn(prompt)

Arguments

prompt what text string should be used to prompt the user? (character string)

Author(s)

Matthew Denwood m.denwood.1@research.gla.ac.uk, funded as part of the DEFRA VTRI project 0101.

See Also

bayescount

Examples

#  Ask the user if they want to proceed
## Not run: 
ask_yn("Do you want to start the program now?  ")
## End(Not run)

[Package bayescount version 0.5.1 Index]