DBI::SQL()elements correctly (#192 @shrektan)
compare()method gains a
...argument, for compatibility with testthat 3.0.0
glue_sql()now replaces missing values correctly when collapsing values (#185).
glue_sql()now always preserves the type of the column even in the presence of missing values (#130)
.envir = NULL is now supported and is equivalent to passing
.envir = emptyenv() (#140)
glue_data_safe() functions, safer versions of
glue() that do not execute code, only look up values (using
alternatives are useful for things like shiny applications where you do not
have control of the input for your glue expressions. (#140)
Fixed memory access issue and memory leaks found by valgrind.
glue now implements vctrs methods. This ensures that vectors of glue strings are compatible with tidyverse packages like tidyr (r-lib/tidyselect#170, tidyverse/tidyr#773, @lionel-).
Fix a LTO type mismatch warning (#146)
glue_sql() now quotes lists of values appropriate to their type, rather
than coercing all values to characters (#153)
glue_data() now implicitly coerces
.x to a list.
glue() gains the
.trim argument, like
backtick() all return
trim()'s handling of lines containing only indentation (#162, #163, @alandipert)
glue()now has a
+method to combine strings.
glue_sql()now collapses zero-length vector into
glue_sql()now supports unquoting lists of Id objects.
glue_sql()now quotes characters with NAs appropriately (#115).
glue_sql()now quotes Dates appropriately (#98).
evaluate() function has been removed. Changes elsewhere in glue made
the implementation trivial so it was removed for clarities sake. Previous
uses can be replaced by
eval(parse(text = text), envir).
collapse() has been renamed to
glue_collapse() to avoid namespace
compare.glue() was added, to make it easier to use glue objects in
glue_data_col() functions added to display strings with
Glue now throws an informative error message when it cannot interpolate a function into a string (#114, @haleyjeppson & @ijlyttle).
Glue now evaluates unnamed arguments lazily with
delayedAssign(), so there
is no performance cost if an argument is not used. (#83, @egnha).
Fixed a bug where names in the assigned expression of an interpolation variable would conflict with the name of the variable itself (#89, @egnha).
Do not drop the
glue class when subsetting (#66).
collapse() always return UTF-8 encoded strings (#81, @dpprdan)
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
vignette("transformers") for more details and example transformer
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.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.