ask_yn {bayescount} | R Documentation |
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'.
ask_yn(prompt)
prompt |
what text string should be used to prompt the user? (character string) |
Matthew Denwood m.denwood.1@research.gla.ac.uk, funded as part of the DEFRA VTRI project 0101.
# Ask the user if they want to proceed ## Not run: ask_yn("Do you want to start the program now? ") ## End(Not run)