Skip to content

Phase 7: deprecate metro_multicriteria() - #25

Merged
schochastics merged 1 commit into
mainfrom
phase-7-metro-deprecate
Jul 23, 2026
Merged

schochastics merged 1 commit into
mainfrom
phase-7-metro-deprecate

Conversation

@schochastics

Copy link
Copy Markdown
Owner

Eighth phase (see _docs/REFACTORING-PLAN.md, §7.2). Small and safe.

What

  • metro_multicriteria() now emits .Deprecated(msg = "... use graphlayouts::layout_as_metromap() instead."). The metro-map multicriteria layout (Stott et al. 2010) is now provided by graphlayouts::layout_as_metromap(), so it no longer belongs here.
  • Function still works; roxygen title/description marked deprecated; NEWS entry; tests updated to expect the warning.

Deferred (a later release)

Removing R/metro_multicriteria.R, src/metroLayout.cpp, the criterion_* / layout_as_metro_iter Rcpp exports, and possibly the duplicated metro_berlin dataset — this also retires the unimplemented criterion_line_straightness() stub.

Result

FAIL 0 | WARN 0 | PASS 82.

🤖 Generated with Claude Code

Soft-deprecate metro_multicriteria() in favour of
graphlayouts::layout_as_metromap(), which now provides this layout. The
function still works but emits a deprecation warning; roxygen, NEWS and
tests updated accordingly. Full removal of the metro C++ and exports is
left for a later release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@schochastics
schochastics merged commit 775bbfd into main Jul 23, 2026
@schochastics
schochastics deleted the phase-7-metro-deprecate branch July 23, 2026 20:28
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