| Line 1... |
Line 1... |
| 1 |
% File src/library/base/man/abbreviate.Rd
|
1 |
% File src/library/base/man/abbreviate.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2020 R Core Team
|
3 |
% Copyright 1995-2026 R Core Team
|
| 4 |
% Copyright 2008-2016 The R Foundation
|
4 |
% Copyright 2008-2016 The R Foundation
|
| 5 |
% Distributed under GPL 2 or later
|
5 |
% Distributed under GPL 2 or later
|
| 6 |
|
6 |
|
| 7 |
\name{abbreviate}
|
7 |
\name{abbreviate}
|
| 8 |
\title{Abbreviate Strings}
|
8 |
\title{Abbreviate Strings}
|
| Line 64... |
Line 64... |
| 64 |
|
64 |
|
| 65 |
If \code{names} is true, the character version of \code{names.arg} is
|
65 |
If \code{names} is true, the character version of \code{names.arg} is
|
| 66 |
attached to the returned value as a \code{\link{names}} attribute: no
|
66 |
attached to the returned value as a \code{\link{names}} attribute: no
|
| 67 |
other attributes are retained.
|
67 |
other attributes are retained.
|
| 68 |
|
68 |
|
| 69 |
If a input element contains non-ASCII characters, the corresponding
|
69 |
If an input element contains non-ASCII characters, the corresponding
|
| 70 |
value will be in UTF-8 and marked as such (see \code{\link{Encoding}}).
|
70 |
value will be in UTF-8 and marked as such (see \code{\link{Encoding}}).
|
| 71 |
}
|
71 |
}
|
| 72 |
\section{Warning}{
|
72 |
\section{Warning}{
|
| 73 |
If \code{use.classes} is true (the default), this is really only
|
73 |
If \code{use.classes} is true (the default), this is really only
|
| 74 |
suitable for English, and prior to \R 3.3.0 did not work correctly
|
74 |
suitable for English, and prior to \R 3.3.0 did not work correctly
|
| 75 |
with non-ASCII characters in multibyte locales. It will warn if used
|
75 |
with non-ASCII characters in multibyte locales. It will warn if used
|
| 76 |
with non-ASCII characters (and required to reduce the length). It is
|
76 |
with non-ASCII characters (and required to reduce the length). Note that
|
| - |
|
77 |
the result may depend on \code{\link{Sys.getlocale}("LC_CTYPE")}, and
|
| - |
|
78 |
e.g., for the \code{"C"} locale currently may depend on the platform,
|
| - |
|
79 |
at least macOS behaving differently. It is
|
| 77 |
unlikely to work well with inputs not in the Unicode Basic Multilingual
|
80 |
unlikely to work well with inputs not in the Unicode Basic Multilingual
|
| 78 |
Plane nor on (rare) platforms where wide characters are not encoded in
|
81 |
Plane nor on (rare) platforms where wide characters are not encoded in
|
| 79 |
Unicode.
|
82 |
Unicode.
|
| 80 |
|
83 |
|
| 81 |
As from \R 3.3.0 the concept of \sQuote{vowel} is extended from
|
84 |
As from \R 3.3.0 the concept of \sQuote{vowel} is extended from
|