tests/textPrompt.R

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)

Try the R.cache package in your browser

Any scripts or data that you put into this service are public.

R.cache documentation built on June 8, 2025, 11:32 a.m.