Given the following toy example:
library(purrr) foo = function(x, a) x + a foop = partial(foo, a = runif(1)) foop