File: read.yesno.Rd

package info (click to toggle)
r-cran-coda 0.13-2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 456 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\name{read.yesno}
\alias{read.yesno}
\title{Read logical values from the command line}

\usage{
   read.yesno(string, default=TRUE)
}

\arguments{
   \item{string}{A string to prompt the user with}
   \item{default}{Logical value giving the default answer}
}

\value{
   A single logical value.
}

\description{
   This is a utility function for interactively reading a logical
   value from the command line.

   The prompt string is printed, along a hint about the default answer.
   Answers "yes", "YES", "no", "NO" or any partial match are accepted.
   If the user enters a blank line, the default value is returned.
}

\author{Martyn Plummer}

\keyword{utilities}