Version 0.2.0
New features
-
plu::more()
limits a vector to the firstn
elements with a message for remaining elements.- This can be useful for providing messages to users without an overwhelming amount of detail.
plu::more(letters, max = 2)
yieldsc("a", "b", "24 more characters")
.
-
The convenience function
get_fun()
finds a function using a character string or unquoted function name, with or without colons. -
plu::ral()
now ensures that the capitalization of a phrase stays the same after pluralizing.plu::ral("A sentence.")
now results in "Sentences." rather than "sentences."
-
Convenience functions around capitalization have been added:
is_capital()
tests if a character (or string of characters) is capital or lowercase.is_capitalized()
tests if the first alphabetic character in a string is capital.capitalize()
converts the first alphabetic character in a string to capital.- Unlike
tools::toTitleCase()
orstringr::str_to_sentence()
, this does not change the capitalization of any subsequent characters.
- Unlike
Patches
plu::stick()
'soxford
now defaults toFALSE
rather than depending on the user's environment.
Deprecations
plu::stick()
'ssyndeton
is now deprecated in favor of explicitly settingsep
andconj
.plu::stick()
'sfn
and...
are now deprecated in favor of applying a function tox
before passing it intoplu::stick()
.
Miscellaneous
- Added a
pkgdown
site. - Added an ORCID to
DESCRIPTION
.