Skip to content

parSim

0.4.0Package record

Parallel Simulator

0packages depend
3.8Kdownloads / year
83.4%test coverage
13/13flavors OK

Overview

About

Perform flexible simulation studies using one or multiple computer cores. The package is set up to be usable on high-performance clusters in addition to being run locally (i.e., see the package vignettes for more information).

Changes in 0.4.0

Breaking changes / deprecations

  • Output rows are now returned in deterministic expanded-design order (sorted by the id column, which is assigned before the load-balancing shuffle); previously rows came back in randomized order. The id, error and message output columns are now documented.
  • parSim_dt() now takes replications and progress as its primary arguments (harmonizing its API with parSim()). The old reps and progressbar arguments are deprecated: they are still accepted but issue a deprecation warning.
  • The output columns of parSim_dt() have been renamed to match parSim(): rep -> replication and errorMessage -> message. The message column is now NA (rather than "") for successful rows.
Show all changes in 0.4.0Hide the rest of the changes in 0.4.0
  • parSim_dt(write = TRUE) now writes to a temporary file when name is missing (instead of erroring), reports the path with a message, and returns the results invisibly instead of NULL.
  • In both parSim() and parSim_dt(), design conditions passed via ... whose names collide with a function argument (e.g. replications, nCores, progress) now trigger a warning, since they would otherwise silently become a crossed design factor.

New features

  • parSim_dt() gained the packages argument of parSim() (packages to load on the parallel workers).
  • New seed argument in parSim() and parSim_dt(): one L'Ecuyer-CMRG RNG substream is derived per simulation condition, so a seeded simulation is fully reproducible and gives identical results for any value of nCores. The caller's RNG state and RNG kind are restored afterwards.

Bug fixes

  • User result columns named id, error or message are no longer silently overwritten: they are renamed to <name>_result with a warning. A warning is also given when a result column duplicates a design-condition name (the join then suffixes the columns .x/.y).
  • export/env now also work when running sequentially (nCores = 1): the simulation expression (and exclude) are evaluated with the caller's environment as enclosure, so objects local to a calling function are found without being in the global environment. Previously this only worked in parallel runs (the completion of the fix for GitHub issue #10), making "works with 8 cores, fails with 1 core" a confusing failure mode.
  • BREAKING BUG FIX: the exclude argument of parSim_dt() did the opposite of its documentation -- it *kept* only the rows matching the exclusion expressions instead of removing them. Matching rows are now removed. Multiple expressions are combined with OR (any match removes the row); previously they were combined with AND.
  • parSim_dt() no longer adds a spurious rn column when the simulation expression returns a data frame (row names are dropped), so list and data-frame results now produce identical output schemas.
  • Removed LazyData: true from DESCRIPTION (the package has no data directory), fixing an R CMD check NOTE.
  • The deprecated cores/save arguments are now only intercepted when they look like the deprecated scalar arguments; a design condition legitimately named cores (e.g. cores = c(1, 2, 4)) is kept as a condition. nCores is validated to be a single integer >= 1.
  • Clear, early error messages for invalid input: zero-length simulation conditions, replications < 1, and designs left empty after exclude (previously crashed later with unrelated-looking errors).

Documentation

  • The supercomputer vignette is no longer written around one specific cluster. It now describes a generic Slurm-based cluster, and the dead link to the decommissioned Lisa Computing Cluster has been removed.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.4.0
READMEYes · 110 wordsVignettesYes · 1 · staticNEWSYes · 100% structured · mentions 0.4.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
4 (1 internal)includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
33%
Documented parameters
100%
Return-value docs
67%
Help pages citing references
0%

Downloads

3.8K
CRAN downloads in the past year
Rank #12,638 · ~10/day · ~313/mo
Daily download trend is not available in this view yet.
28830 days
88890 days
3.8K1 year
Compare downloads with other packages →
Also on106 r2u1 autocran130 c2d4u

Repository

7Stars
4Forks
0Open issues
0Open PRs
0Releases
113Commits
6Commit identities
113 commits · Last activity 2026-07-16
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
41
Median days to close, 50 most recently updated closed PRs
2

Stars over time

2023-03-24 · 72026-07-07 · 7
PracticesBeta

2 development-tooling and community-health practices detected across 1 family in the upstream repository

Checks run against github.com/sachaepskamp/parsim on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-02-25
    Named in .Rbuildignore: .claude
    Commits: at least 19 crediting it in the message
Models named in its commits
  • Claude Fable 513 commits · Jul 2026
  • Claude Opus 4.85 commits · Jul 2026
  • Claude Opus 4.61 commit · Feb 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing parSim adds 26 packages (13 with compiled code, 13 MB of source tarballs). Heaviest: data.table 5.7 MB, parabar 1.3 MB, vctrs 1.0 MB.

Depends (0)
none
Imports (5)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 0.1 (2017)
https://sachaepskamp.com
Author · added in 0.3.1
https://mihaiconstantin.com
Contributor · added in 0.3.1
Contributor · added in 0.4.0
Releases (6)

Pick two releases to compare their code metrics.

  • 0.4.0Latest
    record
    2026-07-16 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.1
    record
    2026-02-26 · diff ↗ ·
    added 1 export
    configure_bar
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.5
    record
    2023-05-16 · diff ↗ ·
    added 1 export
    parSim_dt
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.4
    record
    2020-07-10 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.1
    record
    2019-06-21 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1
    record
    2017-11-10
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-11-10
Total releases
6 / 9 yrs
License
GPL-2 OSI
Download size
93 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("parSim")
Epskamp, S., Constantin, M., Du, X., & Isvoranu, A. M. (2026). parSim: Parallel Simulator (Version 0.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.parSim

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for parSim version 0.4.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy