#' @inheritParams future_lapply
#'
#' @param env An \R environment.
#'
#' @param all.names If `TRUE`, the function will also be applied to variables
#' that start with a period (`.`), otherwise not.
#' See [base::eapply()] for details.
#'
#' @return
#' A named (unless `USE.NAMES = FALSE`) list.
#' See [base::eapply()] for details.
#'
#' @rdname future_lapply
#' @export
future_eapply <- function(env, FUN, ..., all.names = FALSE, USE.NAMES = TRUE, future.envir = parent.frame(), future.label = "future_eapply-%d") {
FUN <- match.fun(FUN)
names <- ls(envir = env, all.names = all.names, sorted = FALSE)
X <- mget(names, envir = env, inherits = FALSE)
if (!USE.NAMES) names(X) <- NULL
future_lapply(X = X, FUN = FUN, ..., future.envir = future.envir, future.label = future.label)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.