Skip to content

Commit

Permalink
cache package check results
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jan 28, 2025
1 parent cdc93bf commit 4b4066a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ map_ <- function(.type,

mmap_ <- function(.x, .f, .progress, .type, error_call, ...) {

rlang::check_installed(c("mirai", "carrier"), reason = "for parallel map.")
if (is.null(the$packages_installed)) {
rlang::check_installed(c("mirai", "carrier"), reason = "for parallel map.")
the$packages_installed <- TRUE
}

if (is.null(mirai::nextget("n"))) {
cli::cli_abort(
Expand Down

0 comments on commit 4b4066a

Please sign in to comment.