# glue 1.6.2
* Modify a test for better forward compatibility with R.
# glue 1.6.1
* Glue Now registers its custom knitr engines in a way that is more
robust to namespace-loading edge cases that can arise during package
installation (#254).
# glue 1.6.0
* `glue()`, `glue_data()`, `glue_col()`, and `glue_data_col()` gain a
new `.literal` argument, which controls how quotes and the comment
character are treated when parsing the expression string
(#235). This is mostly useful when using a custom transformer.
* Trailing whitespace-only lines don't interfere with indentation (#247).
# glue 1.5.1
* Jennifer Bryan is now the maintainer.
* The existing custom language engines for knitr, `glue` and
`glue_sql`, are documented in a new vignette (#71). *Detail added
after release: glue now sets up registration of these engines in
`.onLoad()`.*
* `glue_col()` gives special treatment to styling functions from the
crayon package, e.g. `glue_col("{blue foo}")` "just works" now, even
if crayon is not attached (but is installed) (#241).
* Unterminated backticks trigger the same error as unterminated single
or double quotes (#237).
* `glue_sql()` collapses zero-length `DBI::SQL` object into
`DBI::SQL("NULL")` (#244 @shrektan).
# glue 1.5.0
## Breaking changes
* Long deprecated function `collapse()` has been removed (#213)
## New functions and arguments
* New `glue_sql_collapse()` function to collapse inputs and return a
`DBI::SQL()` object (#103).
* `glue()` gains a new `.comment` argument, to control the comment character (#193).
* `glue()` gains a new `.null` argument, to control the value to
replace `NULL` values with (#217, @echasnovski).
## Bugfixes and minor changes
* `sql_quote_transformer()` is now allows whitespace after the trailing `*` (#218).
* `compare_proxy.glue()` method defined so glue objects can be
compared to strings in testthat 3e without errors (#212)
* `print.glue()` no longer prints an empty newline for 0 length inputs (#214)
* Unterminated comments in glue expression now throw an error (#227, @gaborcsardi)
* Unterminated quotes in glue expressions now throw an error (#226, @gaborcsardi)
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Could not be committed due to merge conflict:
devel/py-traitlets/distinfo
The following distfiles were unfetchable (note: some may be only fetched
conditionally):
./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
# glue 1.4.2
* The required version of R is now 3.2 (#189)
* `glue_sql()` now collapses `DBI::SQL()` elements correctly (#192 @shrektan)
* The internal `compare()` method gains a `...` argument, for compatibility with testthat 3.0.0
The canonical form [1] of an R package Makefile includes the
following:
- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
needed), and CATEGORIES.
- HOMEPAGE is not present but defined in math/R/Makefile.extension to
refer to the CRAN web page describing the package. Other relevant
web pages are often linked from there via the URL field.
This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.
[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
Upstream changes:
glue 1.3.1
Features
glue() now has a + method to combine strings.
Bugfixes and minor changes
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).
A potential protection error reported by rchk was fixed.
glue 1.3.0
Breaking changes
The 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 collisions with dplyr::collapse().
Features
compare.glue() was added, to make it easier to use glue objects in testthat::expect_equal() statements.
glue_col() and glue_data_col() functions added to display strings with color.
Bugfixes and minor changes
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).
Fix glue() and collapse() always return UTF-8 encoded strings (#81, @dpprdan)
An implementation of interpreted string literals, inspired by Python's
Literal String Interpolation and Docstrings, and Julia's Triple-Quoted
String Literals.