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

Passing LFMCMC object to functions and improve docs #64

Merged
merged 7 commits into from
Dec 16, 2024

Conversation

gvegayon
Copy link
Member

@gvegayon gvegayon commented Dec 12, 2024

This pull request includes several updates to the LFMCMC functions and documentation to improve clarity and consistency.

Function Parameter Updates:

  • Arguments in funs passed to set_* now receive the LFMCMC object itself.
  • Updated parameter names in run_lfmcmc, set_observed_data, and other functions to remove trailing underscores for consistency (R/LFMCMC.R, inst/tinytest/test-lfmcmc.R, man/LFMCMC.Rd). [1] [2] [3]

Documentation Enhancements:

  • Added detailed descriptions for function arguments in the LFMCMC documentation, specifying the expected input for each parameter (R/LFMCMC.R, man/LFMCMC.Rd). [1] [2]

Test Case Modifications:

  • Updated test cases to reflect parameter name changes and ensure they align with the new function signatures (inst/tinytest/test-lfmcmc.R). [1] [2]

Minor Fixes:

  • Corrected a typo in .Rbuildignore to ensure the file is properly ignored (.Rbuildignore).

These changes collectively improve the usability and maintainability of the LFMCMC functions and their documentation.

@gvegayon gvegayon linked an issue Dec 12, 2024 that may be closed by this pull request
@gvegayon gvegayon changed the base branch from main to 59-lfmcmc-vignette December 12, 2024 20:28
@gvegayon gvegayon changed the base branch from 59-lfmcmc-vignette to main December 12, 2024 21:43
@gvegayon gvegayon changed the base branch from main to 59-lfmcmc-vignette December 12, 2024 21:44
@gvegayon gvegayon changed the title 61 pass lfmcmc Passing LFMCMC object to functions and improve docs Dec 12, 2024
@gvegayon gvegayon marked this pull request as ready for review December 12, 2024 22:48
@gvegayon gvegayon requested a review from apulsipher December 12, 2024 22:48
Copy link
Contributor

@apulsipher apulsipher left a comment

Choose a reason for hiding this comment

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

A few quick changes. I'll make them then merge this.

R/LFMCMC.R Outdated Show resolved Hide resolved
inst/tinytest/test-lfmcmc.R Outdated Show resolved Hide resolved
Copy link
Contributor

@apulsipher apulsipher left a comment

Choose a reason for hiding this comment

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

lgtm

@apulsipher apulsipher merged commit 4161faa into 59-lfmcmc-vignette Dec 16, 2024
@apulsipher apulsipher deleted the 61-pass-lfmcmc branch December 16, 2024 15:31
apulsipher added a commit that referenced this pull request Dec 16, 2024
* First pass on enhancing the vignette

* Polishing pass on LFMCMC vignette

* Passing LFMCMC object to functions and improve docs (#64)

* Adding missing element [skip ci]

* Adding object to summary function

* Adding class attribute

* Renaming parameters and adding more info in the manual

* Rename model param in example lfmcmc functions

* Add tests to verify lfmcmc_obj in lfmcmc functions

---------

Co-authored-by: Andrew Pulsipher <[email protected]>

* Adding R to pre-commit

* Typo in tests args (run_lfmcmc)

---------

Co-authored-by: George G. Vega Yon <[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.

Allow passing the LFMCMC object to all the functions
2 participants