Question: what is fn in r?
Answer: fn() enables you to create (anonymous) functions, of arbitrary call signature. Use it in place of the usual function() invocation whenever you want to: type less: fn(x, y = 1 ~ x + y) function(x, y = 1) x + y.