Skip to content

Commit

Permalink
Correction in file location.
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonSimonot committed Jan 6, 2025
1 parent efab186 commit b4c5289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

# Setup -------------------------------------------------------------------

library(flipr)
library(future)
library(parallel)
library(progressr)
library(tictoc)
library(flipr)

ngrid_in <- 50L
nperms <- 5000
Expand Down
5 changes: 1 addition & 4 deletions vignettes/parallelization.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(flipr)
load("../R/sysdata.rda")
time_without_parallelization <- df_parallelization$time_without_par
time_with_parallelization <- df_parallelization$time_par
```

The [**flipr**](https://lmjl-alea.github.io/flipr/) package uses functions contained in the [**furrr**](https://future.futureverse.org/index.html) package for parallel processing. The setting of parallelization has to be done on the user side. We illustrate here how to achieve asynchronous evaluation. We use the [**future**](https://future.futureverse.org/index.html) package to set the plan, the **parallel** package to define a default cluster, and the [**progressr**](https://progressr.futureverse.org/index.html) package to report progress updates.

```{r setup}
library(flipr)
```

## Computation without parallel processing

To show the benefit of parallel processing, we compare here the processing times necessary to evaluate a grid with a plausibility function. First, here is the computation without parallelization.
Expand Down

0 comments on commit b4c5289

Please sign in to comment.