stringstatic 0.1.2
- Update staticexport of
str_split()
and
str_split()
fixed to match update in version 0.1.1.
- Use character instead of numeric for R version in tests, to comply
with updated CRAN policy.
stringstatic 0.1.1
str_split()
and str_split_fixed()
now
return a result with a trailing empty string (""
) when the
end of string
matches pattern
. This matches
the behavior of stringr::str_split()
and differs from
base::strsplit()
(#16).
stringstatic 0.1.0
New functions
regex()
str_c()
str_count()
str_dup()
str_length()
and str_width()
str_pad()
str_replace_na()
str_split()
and str_split_fixed()
str_starts()
and str_ends()
str_trim()
and str_squish()
New arguments
str_detect()
, str_subset()
and
str_which()
gain the negate
argument.
str_extract_all()
gains the simplify
argument.
Improvements
- All
stringstatic
functions now have documentation.
- All functions are now vectorized like their
stringr
equivalents.
- All functions have been refactored to no longer rely on
%||%
. This helps improve the portability of
stringstatic
functions. As a result, %||%
has
been removed.
str_remove()
and str_remove_all()
have
been refactored to no longer rely on str_replace()
and
str_replace_all()
. This improves their portability.
str_subset()
has been refactored to no longer rely on
str_which()
. This improves its portability.
- All
stringstatic
functions are now exported. They can
be run interactively by loading the stringstatic
package.
Using staticimports
remains the recommended way to use
stringstatic
functions in your own package.
Bug fixes
- All
stringstatic
functions are now type consistent.
Previously, functions may have returned different types for zero-length
inputs than for non-zero-length inputs.
- Fixed a bug where
fixed(ignore_case = TRUE)
would not
actually ignore case.
Removals
%||%
is no longer exported by
stringstatic
. It is available in
staticimports
.
stringstatic 0.0.2
stringstatic 0.0.1
- Initial release with the following functions:
str_detect()
str_extract()
str_extract_all()
str_replace()
str_replace_all()
str_remove()
str_remove_all()
str_subset()
str_which()
fixed()
%||%