I'm reading through some notes on quasiquotation here: https://dplyr.tidyverse.org/articles/programming.html.
After my first read, I've tried a few things out. One in particular has me confused:
x <- "foo"
q <- quo(x)
print(x)
<quosure>
expr: ^x
env: global
Great, I've created a quosure! Then I figure
!!q
will immediately evaluate the expression, producing "foo". Though naturally, that is wrong!
!!q
Error in !q : invalid argument type
I don't understand why. What am I missing?
Running: R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)
package rlang version: 0.2.1