We are happy to announce that stringr 1.4.0 is now on CRAN. stringr provides a cohesive set of functions designed to make working with strings as easy as possible. For a full list of changes, please see the release notes .
You can install the released version from CRAN:
|
|
|
|
New functions#
Thanks to the hard work of John Harmon at Tidyverse Developer Day , stringr has three new functions.
str_starts()
and str_ends()
detect the presence or absence of patterns at the beginning or end of strings.
|
|
The new str_to_sentence()
function capitalizes strings with sentence case, like so:
|
|
Support for negate#
str_subset()
, str_detect()
, and str_which()
now have the negate argument, which is used to find the elements that do not match a pattern (as seen above in the str_starts() and str_ends() examples).
Acknowledgements#
Thank you to everyone who contributed to this release: @AmeliaMN , @batpigandme , @beckymaust , @BenjaminLouis , @blablablerg , @bschneidr , @bwiernik , @ctmann , @damianooldoni , @dan-reznik , @denrou , @diegogarcilazo , @DieselAnalytics , @elisakreiss , @giovannikraushaar , @hadley , @hammer , @jennybc , @jimhester , @jonocarroll , @jonthegeek , @jrnold , @juanrocha , @kmace , @krlmlr , @osorensen , @paleolimbot , @pdelboca , @pgrandinetti , @PirateGrunt , @samhinshaw , @sastoudt , @seanpor , @yj-danielyang , and @yutannihilation .
