Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joelnitta/issue31 #32

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions episodes/parallel.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,6 @@ Most workflows that use branching can benefit from parallelism.
Here, we assume you are running this analysis on a laptop and so will use a relatively simple backend.
If you are interested in high-performance computing, [see the `targets` manual](https://books.ropensci.org/targets/hpc.html).

### Install R packages for parallel computing

For this demo, we will use the new [`crew` backend](https://wlandau.github.io/crew/).

::::::::::::::::::::::::::::::::::::: {.prereq}

### Install required packages

You will need to install several packages to use the `crew` backend:

```{r}
#| label: install-crew
#| eval: false
install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")
install.packages("mirai", repos = "https://shikokuchuo.r-universe.dev")
install.packages("crew", type = "source")
```

:::::::::::::::::::::::::::::::::::::

### Set up workflow

To enable parallel processing with `crew` you only need to load the `crew` package, then tell `targets` to use it using `tar_option_set`.
Expand Down
3 changes: 1 addition & 2 deletions learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Follow these instructions to install the required software on your computer.
install.packages(
c(
"conflicted",
"future.callr",
"future",
"crew",
"palmerpenguins",
"quarto",
"tarchetypes",
Expand Down
Loading