Skip to content

Commit 79bd01a

Browse files
author
kalibera
committed
Document that chartr specifications allow using - as a literal (PR#17220).
git-svn-id: https://svn.r-project.org/R/trunk@88872 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 87adc39 commit 79bd01a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/library/base/man/chartr.Rd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% File src/library/base/man/chartr.Rd
22
% Part of the R package, https://www.R-project.org
3-
% Copyright 1995-2024 R Core Team
3+
% Copyright 1995-2025 R Core Team
44
% Distributed under GPL 2 or later
55

66
\name{chartr}
@@ -36,7 +36,9 @@ casefold(x, upper = FALSE)
3636
Ranges are supported in the specifications, but character classes and
3737
repeated characters are not. If \code{old} contains more characters
3838
than new, an error is signaled; if it contains fewer characters, the
39-
extra characters at the end of \code{new} are ignored.
39+
extra characters at the end of \code{new} are ignored. To include a literal
40+
\code{-} that should not denote a range, make it the first or the last
41+
character in the specification.
4042

4143
\code{tolower} and \code{toupper} convert upper-case characters in a
4244
character vector to lower-case, or vice versa. Non-alphabetic

0 commit comments

Comments
 (0)