Skip to content

Claude/issue 69 20260321 1742#71

Merged
SebKrantz merged 36 commits intoafricadatafrom
claude/issue-69-20260321-1742
Mar 21, 2026
Merged

Claude/issue 69 20260321 1742#71
SebKrantz merged 36 commits intoafricadatafrom
claude/issue-69-20260321-1742

Conversation

@SebKrantz
Copy link
Copy Markdown
Owner

No description provided.

Also update namespace and docs.
Add PSL details as well + Minors.
Igraph, not cppRouting (legacy dependency).
SebKrantz and others added 6 commits February 22, 2026 19:31
…14733066

Add Claude Code GitHub Workflow
…s with nthreads > 1

The `everywhere({}, envir)` call was passing an R environment object to
mirai daemons, which is problematic for two reasons:

1. `envir <- environment()` created a self-referential circular reference
   in the local scope (the variable points to the same environment it lives
   in). When mirai/nanonext serializes the `run_assignment_core` closure
   for transmission to daemon workers, this circular reference causes
   serialization failures in newer versions of R/nanonext.

2. `everywhere({}, envir)` did not do what was intended — in mirai 2.x,
   the R environment object was passed as an unnamed `...` argument but
   was silently ignored by the empty `{}` expression. Serializing a full
   R environment for cross-process transmission is inherently fragile.

The `run_assignment_core` closures already capture all required data
(g, cost, from, to, dmat, etc.) from their enclosing scope via normal
R closure semantics. mirai correctly serializes these closures, so the
`everywhere` setup step is unnecessary.

Fixes #69

Co-authored-by: Sebastian Krantz <SebKrantz@users.noreply.github.com>
@SebKrantz SebKrantz merged commit 046d645 into africadata Mar 21, 2026
7 checks passed
@SebKrantz SebKrantz deleted the claude/issue-69-20260321-1742 branch March 21, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant