-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polish README and introduction to glue #337
Conversation
|
||
`glue_data()` is very natural to use with the pipe: | ||
|
||
```{r, eval = getRversion() >= "4.1.0"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do need to keep this from executing on older versions of R.
The data-masking feature of `mutate()` means the columns of the target data frame are "in scope" for a `glue()` call: | ||
|
||
```r | ||
library(dplyr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to be a fixed chunk, given the use of dplyr, which is a drag. But I want to show this.
glue_sql()\` makes constructing SQL statements safe and easy Use | ||
backticks to quote identifiers, normal strings and numbers are quoted | ||
appropriately for your backend. | ||
glue has explicit support for constructing SQL statements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really haven't touched this section personally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It almost feels like this whole section should be moved to a new SQL-focused vignette.
Co-authored-by: Hadley Wickham <h.wickham@gmail.com>
Co-authored-by: Hadley Wickham <h.wickham@gmail.com>
Thanks to the cumulative work of 2 tidy dev days, glue has gotten a "get started" style vignette. This PR is me continuing to polish the README and that vignette.