R/readConfirm.R

Defines functions readConfirm

readConfirm = function(prompt = "Confirm? (Y/n)"){
  response = readline(paste(prompt, " "))
  substr(tolower(response), start = 1, stop = 1) == "y"
}
jakob-r/thefu documentation built on May 24, 2019, 1:33 a.m.