~/talk

Parallel computing with R using foreach, future, and other packages

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [data-science]
links:none on file
slides:none on file

Explains how foreach’s %dopar% operator and a .combine like rbind let map/reduce loops run either sequentially or in parallel (demo uses two worker processes), how registerDoParallel(n) controls cores, and how doMPI/doRedis adapters support MPI and Redis clusters. Describes future (and doFuture) as syntax-agnostic parallelism that auto-exports lexical variables to workers and interoperates with foreach, notes a composition operator for nested parallelism, and mentions debugging options like stop-on-first-error and log capture.

AI-written summary · about

  1. 0:00Start
  2. 7:32Despite the for-loop syntax, foreach works kinda like
  3. 10:13The future package is not opinionated, you can do the same thing with any syntax!
  4. 10:40Scoped objects are auto-magically exported
  5. 11:20Compose two foreach loops with the %% operator
  6. 12:00Future works interoperably with foreach through doFuture, as do other parallel adapters
  7. 14:41Don't mourn...
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.