Skip to content

Commit

Permalink
fix #462
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Jun 28, 2022
1 parent 1c84d63 commit 3eb2798
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

* [BUGFIX] #480: Using `Rf_isNull` instead of isNull`.

* [DOCUMENTATION] #462... That the `numeric=TRUE` collator
does not handle negative numbers correctly is not mentioned in the manual.
* [DOCUMENTATION] #462: That the `numeric=TRUE` collator
does not handle negative numbers correctly is now mentioned in the manual.


... checkRd: (-1) stri_trans_nf.Rd:74: Escaped LaTeX specials: \#
Expand Down
5 changes: 3 additions & 2 deletions R/opts.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# kate: default-dictionary en_US

## This file is part of the 'stringi' package for R.
## Copyright (c) 2013-2021, Marek Gagolewski <https://www.gagolewski.com>
## Copyright (c) 2013-2022, Marek Gagolewski <https://www.gagolewski.com>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -77,7 +77,8 @@
#' @param numeric single logical value;
#' when turned on, this attribute generates a collation key for
#' the numeric value of substrings of digits;
#' this is a way to get '100' to sort AFTER '2'
#' this is a way to get '100' to sort AFTER '2';
#' note that negative numbers will not be ordered properly
#' @param ... [DEPRECATED] any other arguments passed to this function
#' generate a warning; this argument will be removed in the future
#'
Expand Down
2 changes: 1 addition & 1 deletion devel/sphinx/weave/collation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ we play with some of them.
| `locale` | a string specifying the locale to use; `NULL` (default) or `""` for the current default locale as indicated by `stri_locale_get()` |
| `strength` | an integer in *{1,2,3,4}* defining collation strength; 1 for the most permissive collation rules, 4 for the strictest ones; defaults to 3 |
| `uppercase_first` | logical; `NA` (default) orders upper and lower case letters in accordance to their tertiary weights, `TRUE` forces upper case letters to sort before lower case letters, `FALSE` does the opposite |
| `numeric` | logical; if `TRUE`, a collation key for the numeric value of substrings of digits is generated; this is a way to make `"100"` ordered after `"2"`; defaults to `FALSE` |
| `numeric` | logical; if `TRUE`, a collation key for the numeric value of substrings of digits is generated; this is a way to make `"100"` ordered after `"2"`; however, negative numbers are not ordered correctly; defaults to `FALSE` |
| `case_level` | logical; if `TRUE`, an extra case level (positioned before the third level) is generated; defaults to `FALSE` |
| `normalisation` | logical; if `TRUE`, then an incremental check is performed to see whether input data are in the FCD ("fast C or D") form; if data are not in the FCD form, the incremental NFD normalisation is performed, see {ref}`Sec:normalisation`; defaults to `FALSE` |
| `alternate_shifted` | logical; if `FALSE` (default), all code points with non-ignorable primary weights are handled in the same way; `TRUE` causes the code points with primary weights that are less than or equal to the variable top value to be ignored on the primary level and moved to the quaternary level; this can be used to, e.g., ignore punctuation, see the examples provided |
Expand Down
3 changes: 2 additions & 1 deletion man/stri_opts_collator.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3eb2798

Please sign in to comment.