Skip to content

stringr 1.6.0

Latest

Choose a tag to compare

@hadley hadley released this 04 Nov 22:44

Breaking changes

  • All relevant stringr functions now preserve names (@jonovik, #575).
  • str_like(ignore_case) is deprecated, with str_like() now always case sensitive to better follow the conventions of the SQL LIKE operator (@edward-burn, #543).
  • In str_replace_all(), a replacement function now receives all values in a single vector. This radically improves performance at the cost of breaking some existing uses (#462).

New features

Minor bug fies and improvements

  • str_* now errors if pattern includes any NAs (@nash-delcamp-slp, #546).
  • str_dup() gains a sep argument so you can add a separator between every repeated value (@edward-burn, #564).
  • str_sub<- now gives a more informative error if value is not the correct length.
  • str_view() displays a message when called with a zero-length character vector (@LouisMPenrod, #497).
  • New [[.stringr_pattern method to match existing [.stringr_pattern (@edward-burn, #569).