The implementation has been tweaked to be slightly faster in most cases.
glue() now has a
.transformer argument, which allows you to use custom logic on how to evaluate the code within glue blocks. See
vignettes("transformers") for more details and example transformer functions.
glue() now returns
NA if any of the results are
NA values are replaced by the value of
trim() to use the trimming logic from glue is now exported.
glue_data_sql() functions added to make constructing SQL statements with glue safer and easier.
glue() is now easier to use when used within helper functions such as
Fix when last expression in
glue() is NULL.
Fix for PROTECT errors when resizing output strings.
glue() always returns ‘UTF-8’ strings, converting inputs if in other encodings if needed.
to_data() have been removed.
glue_data() can now take alternative delimiters to
}. This is useful if you are writing to a format that uses a lot of braces, such as LaTeX. (#23)
collapse() now returns 0 length output if given 0 length input (#28).
glue() to admit
. as an embedded expression in a string (#15, @egnha).
NEWS.md file to track changes to the package.