File: textPrompt.R

package info (click to toggle)
r-cran-r.cache 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: sh: 14; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
textPrompt <- R.cache:::.textPrompt

ans <- textPrompt("Do you have a minute?")
print(ans)

ans <- textPrompt("Do you have a minute?", options=c("yes", "no"))
print(ans)

## Output to standard error
ans <- textPrompt("Do you have a minute?", type="message")
print(ans)

## Output to standard output
ans <- textPrompt("Do you have a minute?", type="output")
print(ans)