glue
glue copied to clipboard
Glue strings to data in R. Small, fast, dependency free interpreted string literals.
## Problem I made a wrapper to more easily create my queries and found an unexpected behaviour in `glue_sql()`. These are minimal examples of the problem. The wrapper passes a...
This is self-promotion, so please reject if you feel this is inappropriate. I think the [jinjar](https://davidchall.github.io/jinjar/) package could be helpful to glue users who are looking for string templating.
The `hp` column is used twice in the query and should be quoted in both places for consistency.
``` ❯ r"{(\1\2)}" [1] "(\\1\\2)" ❯ glue::glue('{r"{(\1\2)}"}') () ```
Hi, I was using an if statement in glue, and ran across something that I think this is not the intended behavior? If I use an if statement without specifying...
Hi, Thanks for the glue package. I wrote a transformer to format numbers with a fixed number of significant figures. I used a function generator to do that, which is...
The help file for `glue()` and `glue_data()` has: > Leading whitespace and blank lines from the first and last lines are automatically trimmed. but calls the `trim()` function by default...
Closes #264. Documentation currently doesn't make it clear that named arguments passed to `glue_data` take precedence over values that may be found in `.x`. This PR briefly mentions this behavior...
`glue_data()` currently gives priority to named arguments over elements of `.x`. ``` glue::glue_data("SELECT {x}", .x = list(x = 1), x = 2) #> "SELECT 2" ``` This seems perfectly reasonable:...