Skip to content

Fix deprecated formula syntax in aes() call#442

Merged
jgabry merged 1 commit intostan-dev:masterfrom
ishaan-arora-1:fix/deprecated-formula-aes-441
Mar 10, 2026
Merged

Fix deprecated formula syntax in aes() call#442
jgabry merged 1 commit intostan-dev:masterfrom
ishaan-arora-1:fix/deprecated-formula-aes-441

Conversation

@ishaan-arora-1
Copy link
Contributor

Fixes #441

Replaced aes(x = ~ value) with aes(x = .data$value) in R/mcmc-distributions.R. This was the last remaining use of the deprecated formula syntax in aes().

Replace `aes(x = ~ value)` with `aes(x = .data$value)` in the
internal mcmc_hist/mcmc_dens code path.

Fixes stan-dev#441
Copy link
Member

@jgabry jgabry left a comment

Choose a reason for hiding this comment

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

Thanks!

@jgabry
Copy link
Member

jgabry commented Mar 10, 2026

We can merge this when the CI finishes

@ishaan-arora-1
Copy link
Contributor Author

We can merge this when the CI finishes

great!!

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.63%. Comparing base (c817061) to head (8345f96).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #442   +/-   ##
=======================================
  Coverage   98.63%   98.63%           
=======================================
  Files          35       35           
  Lines        5860     5860           
=======================================
  Hits         5780     5780           
  Misses         80       80           

☔ 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.

@jgabry
Copy link
Member

jgabry commented Mar 10, 2026

The one failure on r-devel is unrelated to this PR. Merging now.

@jgabry jgabry merged commit af1a55c into stan-dev:master Mar 10, 2026
5 of 6 checks passed
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.

Deprecated formula syntax in mcmc_hist aes() call

3 participants