According to the reference documentation on the map , you mapneed a function, but it also takes a formula, a character vector, a numerical vector or a list, the last of which are converted to functions.
~ R . , ~ lm(mpg ~ wt, data = .) - . R, . ,
x <- ~f(a+b)
f, a b . ~ lm(mpg ~ wt, data = .) function(x) {lm(mpg ~ wt, data = x)}, map . .
lm(mpg ~ wt, data = .) R., . . , map .