Skip to content

Cmdstanr methods#1187

Merged
strengejacke merged 4 commits into
mainfrom
cmdstanr-methods
May 11, 2026
Merged

Cmdstanr methods#1187
strengejacke merged 4 commits into
mainfrom
cmdstanr-methods

Conversation

@mattansb

Copy link
Copy Markdown
Member

Closes #1185 #1186

@strengejacke not sure how / if we need to add tests given that cmdstanr isn't on CRAN (on purpose).

@mattansb mattansb requested a review from strengejacke May 10, 2026 08:46

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for CmdStanFit models by implementing find_algorithm(), find_parameters(), and get_parameters() methods. The review identifies a bug in chain calculation within find_algorithm(), recommends removing commented-out code for better maintainability, and suggests removing the insight:: prefix from internal function calls to maintain consistency across the codebase.

Comment thread R/find_algorithm.R
Comment thread R/find_parameters_bayesian.R
Comment thread R/get_parameters_bayesian.R Outdated
@strengejacke

Copy link
Copy Markdown
Member

No, I don't think we need tests

@mattansb

Copy link
Copy Markdown
Member Author

As far as I can see failing tests are unrelated to this PR. If you agree, @strengejacke , please merge (:

@strengejacke strengejacke merged commit e55c69e into main May 11, 2026
11 of 20 checks passed
@strengejacke strengejacke deleted the cmdstanr-methods branch May 11, 2026 21:19
@strengejacke

Copy link
Copy Markdown
Member

Thanks, lgtm

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.

Add insight::find_algorithm(<CmdStanMCMC>)

2 participants