matloff / matloff/partools

cls should be the last argument

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
40
Forks
12
PR merge metrics
No merged PRs in 30d

Description

In most cases, I think the user will only have one cluster, and forcing then to think about it all the time, seems inelegant. Why not make it the last argument, default it to NULL, and then use the default cluster that parallel uses? This would allow you to still be explicit when wanted, but in data analysis code, it could be omitted.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the package for functions whose signatures include cls and compare their behavior with R's parallel default-cluster handling. Check whether cls can consistently move to the last argument and default to NULL while preserving explicit cluster selection. Done means relevant calls work without cls and still accept an explicit cluster.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.