powered by
ask(msg = "Press to continue: ")
readLines
scan
# use default prompt ask() silly <- function() { age <- ask("How old aroe you? ") age <- as.numeric(age) cat("In 10 years you will be", age+10, "years old!\n") }
Run the code above in your browser using DataLab