Skip to content
Back to skills

R Parallel Distributed

ASecurity

R distributed computing with sparklyr, future.batchtools. Use for cluster and cloud computing.

  • 5 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added June 4, 2026
datagosql

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill r-parallel-distributed --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of R Parallel Distributed?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for R Parallel Distributed
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-r-parallel-distributed/badge)](https://www.skillsdirectory.com/skills/leolin990405-r-parallel-distributed)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: r-parallel-distributed
description: R distributed computing with sparklyr, future.batchtools. Use for cluster and cloud computing.
---

# R Distributed Computing

Cluster and cloud computing.

## sparklyr

```r
library(sparklyr)

# Connect
sc <- spark_connect(master = "local")
sc <- spark_connect(master = "yarn")

# Copy data
sdf <- copy_to(sc, df, "my_table")
sdf <- spark_read_csv(sc, "data", "path/to/file.csv")
spark_read_parquet(sc, "data", "path/to/file.parquet")

# dplyr operations
result <- sdf %>%
  filter(x > 0) %>%
  group_by(category) %>%
  summarize(mean_x = mean(x)) %>%
  collect()

# SQL
sdf <- sdf_sql(sc, "SELECT * FROM my_table WHERE x > 0")

# ML
model <- sdf %>%
  ml_linear_regression(y ~ x1 + x2)

predictions <- ml_predict(model, new_data)

# Disconnect
spark_disconnect(sc)
```

## future.batchtools

```r
library(future.batchtools)

# SLURM
plan(batchtools_slurm, workers = 100)

# SGE
plan(batchtools_sge)

# Custom template
plan(batchtools_slurm,
  template = "slurm.tmpl",
  resources = list(
    walltime = "01:00:00",
    memory = "4G",
    ncpus = 1
  )
)

# Submit jobs
results <- future_map(1:1000, process_task)
```

## batchtools

```r
library(batchtools)

# Create registry
reg <- makeRegistry(file.dir = "registry")

# Define jobs
batchMap(fun = my_function, args = list(x = 1:100), reg = reg)

# Submit
submitJobs(reg = reg)

# Status
getStatus(reg = reg)
getJobTable(reg = reg)

# Results
reduceResults(reg = reg)
loadResult(1, reg = reg)
```

## clustermq

```r
library(clustermq)

# Options
options(clustermq.scheduler = "slurm")

# Submit
results <- Q(
  fun = my_function,
  x = 1:100,
  n_jobs = 10
)

# With data
results <- Q(
  fun = my_function,
  x = 1:100,
  const = list(data = my_data),
  export = list(helper_function = helper_function)
)
```

Files in this skill

  • SKILL.md1.8 KB
  • sparklyr/SKILL.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.