I have a function that I want to pass an operator to, like so:
foo <- function(a, b, op){
op(a, b)
}
foo(1, 2, `>`)
#> [1] FALSE
Created on 2020-07-31 by the reprex package (v0.3.0)
This is exactly what I want. My question is, can I achieve the same goal without the backticks? That is, so the function call would be
foo(1, 2, >)