snakecase 0.11.0 (25.05.19)
Changes in 0.10.0 and 0.10.0.9000
New functionality:
- abbreviations: Abbreviations are now ...
- ... matched case-insensitive inside of groups of connected lower/upper case sequences.
- ... consistently formatted according to the supplied case.
- ... formatted exactly as supplied for the cases title, mixed, lower and upper camel.
- ... protected from the parsing. This means that
- special characters in abbreviations don't need to be taken care of anymore. The formatting of digits or special characters like hyphens, colons etc. will be formatted as specified.
- parsing_option:
- new parsing option 3 parses "SOmeNIceSTUFf".
- parsing options starting with a minus (-1, -2, -3) don't interprete non-alphanumeric characters as word boundaries. E.g. "This.text" will stay "This.text" in upper camel case.
- cases
- title: New case which should be especially useful for automatic generation of proper labels within graphics or business reports. Builds up on sentence case which is wrapped within
tools::toTitleCase()
. - random: New case, which will randomly convert letters into upper or lower case.
- title: New case which should be especially useful for automatic generation of proper labels within graphics or business reports. Builds up on sentence case which is wrapped within
- numerals: new alignment option
"tight"
which allows to suppress all underscores between numerals and letters. - sep_out:
sep_out
gets proper vectorization. In case oflength(sep_out) > 1
differing substrings are connected by the (possibly) differing elements ofsep_out
. Therefore,sep_out
gets accordingly shortened or the last element ofsep_out
gets recycled to match the number of needed separators for each element ofstring
. - UTF8 Conversion: Input is now always converted to UTF-8 and returned as UTF8. Also the
transliterations
argument is now aware of non-UTF8 encoded input.
Infrastructure:
- CII best practices badge: Achieved the criteria for the best practices badge. Current status is under https://bestpractices.coreinfrastructure.org/de/projects/2475
- R Version: Increase from 3.1 to 3.2 regarding the usage of
tools::toTitleCase()
insideto_title_case()
. - Vignettes: The blog article "Introducing the snakecase package" was added as a vignette.
- Documentation: The readme, the examples and the function documentation were updated according to the new functionality.
- Resolve CRAN notes:
- Tests: Skip
to_any_case()
tests (janitor-pkg-tests, transliterations and complex strings) when platform charset is not UTF-8 to resolve CRAN notification regarding character encoding. - Vignettes: Build the package with new version of knitr to resolve CRAN notification regarding vignette encoding.
- Tests: Skip