The R Project SVN R

Rev

Rev 27625 | Rev 42333 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27625 Rev 32235
Line 6... Line 6...
6
\description{
6
\description{
7
  This is a helper function for \code{\link{format}}. It converts its argument
7
  This is a helper function for \code{\link{format}}. It converts its argument
8
  to a string. If the argument is a vector then its elements are
8
  to a string. If the argument is a vector then its elements are
9
  concatenated with a \code{,} as a separator. 
9
  concatenated with a \code{,} as a separator. 
10
  Most methods should honor the width argument. 
10
  Most methods should honor the width argument. 
11
  The minimum value for \code{width} is six. 
-
 
12
}
11
}
13
\usage{
12
\usage{
14
toString(x, \dots)
13
toString(x, \dots)
15
 
14
 
16
\method{toString}{default}(x, width, \dots)
15
\method{toString}{default}(x, width, \dots)
17
}
16
}
18
\arguments{
17
\arguments{
19
  \item{x}{The object to be converted.}
18
  \item{x}{The object to be converted.}
20
  \item{width}{The returned value is at most the first \code{width} characters.}
19
  \item{width}{The returned value has at most \code{width} characters.
-
 
20
    The minimum value accepted is 6 and smaller values are taken as 6.}
21
  \item{\dots}{Optional arguments for methods.}
21
  \item{\dots}{Optional arguments for methods.}
22
}
22
}
-
 
23
\details{
-
 
24
  The default method returns the first \code{width - 4} characters of
-
 
25
  the result with \code{....} appended, if the full result would use
-
 
26
  more than \code{width} characters.
-
 
27
}
23
\value{
28
\value{
24
  A character vector of length 1 is returned.
29
  A character vector of length 1 is returned.
25
}
30
}
26
\author{ Robert Gentleman }
31
\author{ Robert Gentleman }
27
 
32