ask_: Ask a series of questions, stored in an object

Description Usage Arguments Value Examples

View source: R/ask.R

Description

Store questions with questions, and then ask them with ask_.

Usage

1
ask_(questions, .prompt = yellow(paste0(symbol$pointer, " ")))

Arguments

questions

Questions stored with questions.

.prompt

Prompt to prepend to all questions.

Value

A named list with the answers, see ask for the format.

Examples

1
2
3
4
5
6
7
8
## Not run: 
qs <- questions(
  name = input("What is your name?"),
  color = choose("Red or blue?", c("Red", "Blue"))
)
ask_(qs)

## End(Not run)

gaborcsardi/ask documentation built on July 13, 2017, 4:03 a.m.