How can I use ensym
or another appropriate function that will store this as a variable and assign a value to it.
For example:
quest <- 'a'
list(rlang::ensym(quest) = 1)
>Error: unexpected '=' in "list(rlang::ensym(quest)="
Expected output:
$a
[1] 1