R/make_function.R

Defines functions make_function

make_function <- function(body,
                          arg_list,  
                          env = parent.frame()) {  
    f <- function() {}
    formals(f) <- arg_list
    body(f) <- body
    environment(f) <- env
    return(f)
}
RajLabMSSM/echoconda documentation built on June 6, 2024, 10:38 a.m.