Skip to content

Fixes #1107: Remove deprecation wrappers for forecast_sample_multivariate#1129

Merged
seabbs merged 2 commits intomainfrom
issue-1107-remove-deprecation-wrappers
Mar 3, 2026
Merged

Fixes #1107: Remove deprecation wrappers for forecast_sample_multivariate#1129
seabbs merged 2 commits intomainfrom
issue-1107-remove-deprecation-wrappers

Conversation

@nikosbosse
Copy link
Collaborator

@nikosbosse nikosbosse commented Mar 1, 2026

CLAUDE:

Summary

  • Removes the deprecated forecast_sample_multivariate class name from the class vector (was appended after forecast for backwards compatibility)
  • Removes assert_forecast.forecast_sample_multivariate S3 method alias
  • Removes is_forecast_sample_multivariate() deprecated function
  • Removes score.forecast_sample_multivariate S3 method alias
  • Removes get_metrics.forecast_sample_multivariate S3 method alias
  • Regenerates example data and documentation to reflect the clean class vector

Since multivariate scoring hasn't been in a CRAN release yet (merged after v2.1.2), these deprecation wrappers from #1072 aren't needed for backwards compatibility.

Test plan

  • All 730 existing tests pass (0 failures, 0 skips)
  • Added test asserting old class name is no longer present
  • No references to old class name remain in R/ source, NAMESPACE, or test assertions
  • The 1 pre-existing warning (NaNs produced in transform-forecasts) is unrelated

Closes #1107

🤖 Generated with Claude Code

…iate

Since multivariate scoring hasn't been in a CRAN release yet, the
deprecation wrappers added in #1072 are not needed for backwards
compatibility. This removes:

- The deprecated class name "forecast_sample_multivariate" from the
  class vector (it was appended after "forecast" for compat)
- assert_forecast.forecast_sample_multivariate S3 method alias
- is_forecast_sample_multivariate() deprecated function
- score.forecast_sample_multivariate S3 method alias
- get_metrics.forecast_sample_multivariate S3 method alias

Also regenerates example data and documentation to reflect the
clean class vector.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.95%. Comparing base (1735528) to head (b0b3b47).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1129      +/-   ##
==========================================
- Coverage   97.96%   97.95%   -0.01%     
==========================================
  Files          37       37              
  Lines        1961     1955       -6     
==========================================
- Hits         1921     1915       -6     
  Misses         40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nikosbosse
Copy link
Collaborator Author

LGTM

@nikosbosse nikosbosse requested a review from seabbs March 1, 2026 09:29
Copy link
Contributor

@seabbs seabbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree looks good

@seabbs seabbs enabled auto-merge March 3, 2026 12:14
@seabbs seabbs merged commit e6e6bda into main Mar 3, 2026
11 checks passed
@seabbs seabbs deleted the issue-1107-remove-deprecation-wrappers branch March 3, 2026 12:19
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.

Remove depreciation wrappers before next CRAN release

2 participants