Learn R Programming

mikropml (version 1.6.1)

radix_sort: Call sort() with method = 'radix'

Description

THE BASE SORT FUNCTION USES A DIFFERENT METHOD DEPENDING ON YOUR LOCALE. However, the order for the radix method is always stable.

Usage

radix_sort(...)

Value

Whatever you passed in, now in a stable sorted order regardless of your locale.

Arguments

...

All arguments forwarded to sort().

Author

Kelly Sovacool sovacool@umich.edu

Details

see https://stackoverflow.com/questions/42272119/r-cmd-check-fails-devtoolstest-works-fine

stringr::str_sort() solves this problem with the locale parameter having a default value, but I don't want to add that as another dependency.