Skip to content

Quotes, Quotation and Quasiquotation

Photo of Charlotte Wickham
Hosted By
Charlotte W.
Quotes, Quotation and Quasiquotation

Details

I'll start with a common question for new R users: When do I put quotes (`"`) around something in R? I'll give you a few strategies for identifying whether you need quotes, backticks, or nothing at all.

Then we'll transition to talking about quotation which, by the way, doesn't mean surrounding something in quotes. What does it mean? You'll learn what quotation is, and why developers use it to make your life easier.

Finally, I'll introduce the idea of unquoting and help you understand what it means when a function says it supports quasiquotation. This will allow you to to use functions like `dplyr::filter()` inside your own functions.

I'll aim to have the talk be interactive without you having a laptop with you, but if you would like to follow along in R, make sure you have the tidyverse packages, rlang and lobstr installed:

```
install.packages(c("tidyverse", "rlang"))
# install.packages("devtools")
devtools::install_github("r-lib/lobstr")
```

Photo of Eugene R Users group
Eugene R Users
See more events
Oregon Research Institute
1776 Millrace Drive · Eugene, OR