-
Notifications
You must be signed in to change notification settings - Fork 8
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
demo vignette modification suggestions #705
Conversation
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
* update initialize_modules(), initialize_fims(), and initialize_fleet() to use length data * add data_mile1_add_length.R to set up FIMSFrame object with length data and change to data1 * use dplyr::pull() instead of anonymous function * use function n_years(data) instead of accessing n_years slot from data (e.g., data@n_years) * updates integration tests * Part of #702 for changing data_mile1 to data1
Fully documents Parameter and ParameterVector matching documentation at the function definition with what is shown in Rcpp methods::show() inside R. Co-authored-by: @Andrea-Havron-NOAA <[email protected]> Co-authored-by: @Bai-Li-NOAA <[email protected]> Co-authored-by: @Cole-Monnahan-NOAA <[email protected]> Co-authored-by: @JaneSullivan-NOAA <[email protected]> Co-authored-by: @nathanvaughan-NOAA <[email protected]>
because we have is_random_effect
* doi to Bai et al. * fix grammar and spelling
Thank you @k-doering-NOAA for this. I have since rebased this to dev-length-wrapper-and-test and we will continue to make some edits during today's (Tuesday 2024-12-17) office hour. After which, we can merge this into dev. During the office hour we will focus on the accessor functions of FIMSFrame. |
255cefe
to
34601e8
Compare
Refactor, increase, and overhaul accessors for FIMSFrame and FIMSFit! Changes to use get_*() and m_*() for all accessors where it was not consistent before. Also changed to using a single file to document all of the accessors that can be grouped together. Added a ton of documentation, i.e., R comments, to the fimsframe and fimsfit files so it is more clear how to add to them if you are a new developer. Increased the consistency of naming and documentation styles, added VS Code/RStudio style headers to the two files to help with navigation. Deleted weight_at_age slot from FIMSFrame because m_weight_at_age should be used instead of getting that information from the slot. HUGE THANKS to those that showed up and helped with this large task during the FIMS Office Hour today :) Co-authored-by: @JaneSullivan-NOAA <[email protected]> Co-authored-by: @Andrea-Havron-NOAA <[email protected]> Co-authored-by: @nathanvaughan-NOAA <[email protected]> Co-authored-by: @peterkuriyama-NOAA <[email protected]>
f372695
to
0b952b1
Compare
We rocked it during the FIMS Office Hour today! We were able to clean up, document, and add to the R/fimsframe.R and R/fitfims.R files. I really cannot believe how much we got done. I restructured a few things this afternoon after the work session because I realized that it would be better to document all get_() functions in R/fimsframe.R in their own file and likewise for m_(). Additionally, the get_*() functions from R/fimsfit.R are also in a single file now. Then I knocked off a few trivial tasks from #662 like removing code that was commented out and fixing a few things being printed to the screen by Rcpp::Rcout(). |
What is the feature?
How have you implemented the solution?
@data
slot is accessed directly, which I thought was not supposed to be how users access slots; instead, I think theFIMS::get_data()
function should be used.According to advanced R on accessors,
I can make this change, if we agree that it should be done!
Does the PR impact any other area of the project, maybe another repo?