Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get parameters #646

Merged
merged 14 commits into from
May 3, 2024
Merged

Get parameters #646

merged 14 commits into from
May 3, 2024

Conversation

sbfnk
Copy link
Contributor

@sbfnk sbfnk commented May 2, 2024

Description

This PR closes #645 by introducing get_parameters(), get_pmf() and get_distribution() functions that access elements of <dist_spec> objects.

Initial submission checklist

  • My PR is based on a package issue and I have explicitly linked it.
  • I have tested my changes locally (using devtools::test() and devtools::check()).
  • I have added or updated unit tests where necessary.
  • I have updated the documentation if required and rebuilt docs if yes (using devtools::document()).
  • I have followed the established coding standards (and checked using lintr::lint_package()).
  • I have added a news item linked to this PR.

After the initial Pull Request

  • I have reviewed Checks for this PR and addressed any issues as far as I am able.

@sbfnk sbfnk force-pushed the get-parameters branch from 21ffdc7 to 9bccd0a Compare May 2, 2024 09:50
@sbfnk sbfnk requested a review from jamesmbaazam May 2, 2024 11:16
R/dist_spec.R Outdated Show resolved Hide resolved
R/dist_spec.R Outdated Show resolved Hide resolved
jamesmbaazam
jamesmbaazam previously approved these changes May 2, 2024
Copy link
Contributor

@jamesmbaazam jamesmbaazam left a comment

Choose a reason for hiding this comment

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

Thanks, @sbfnk. The new accessors will make the distribution interface easier to interact with.

I've suggested a few changes that can be addressed or left for latter refactoring to move forward this release.

NEWS.md Outdated Show resolved Hide resolved
@sbfnk sbfnk enabled auto-merge (squash) May 2, 2024 15:04
@sbfnk sbfnk requested a review from jamesmbaazam May 2, 2024 15:04
jamesmbaazam
jamesmbaazam previously approved these changes May 2, 2024
@sbfnk sbfnk requested a review from jamesmbaazam May 2, 2024 20:07
@sbfnk sbfnk merged commit 5404102 into main May 3, 2024
9 checks passed
@sbfnk sbfnk deleted the get-parameters branch May 3, 2024 02:21
sbfnk added a commit that referenced this pull request May 3, 2024
* add functions for accessing parts of `dist_spec()`

* update use to get_ functions

* add news item

* set max when constructing parametric dist_spec

* add PR number and reviewer

Co-authored-by: James Azam <[email protected]>

* clearer get_dist_spec_id function

* update documentation

---------

Co-authored-by: James Azam <[email protected]>
sbfnk added a commit that referenced this pull request May 3, 2024
* add functions for accessing parts of `dist_spec()`

* update use to get_ functions

* add news item

* set max when constructing parametric dist_spec

* add PR number and reviewer

Co-authored-by: James Azam <[email protected]>

* clearer get_dist_spec_id function

* update documentation

---------

Co-authored-by: James Azam <[email protected]>
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.

interface to dist_spec parameters
2 participants