I would like to modify a random generation function (like rnorm) so that it can be used by another function. It needs to take the parameters as a vector, and also it needs to be a partial function (no other arguments except for the parameter vector).
Ideally it would not refer to anything outside its environment (so it can be used in parallel::parLapply without clusterExport).
So if we consider rnorm, this is where I am so far.
The base R force function can be used within a function definition in a similar way to !! is used within the arguments of purrr::partial (See question where I force evaluation of nx in x_func).