-
Notifications
You must be signed in to change notification settings - Fork 5
Add convert_output from {asar} #167
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates the convert_output() function from the {asar} package to {stockplotr}, reflecting that the function is more appropriate for this package given dependencies. The migration includes the function code, documentation, tests, vignette, and supporting naming convention files for SS3, BAM, and FIMS models.
Key Changes:
- Added
convert_output()function to standardize assessment model output across different formats - Included comprehensive vignette explaining the standardization process and naming conventions
- Added test suite and fixture preparation scripts for SS3 models
- Added CSV files with standard naming conventions for SS3, BAM, and FIMS models
Reviewed changes
Copilot reviewed 11 out of 31 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| R/convert_output.R | Main function implementation for converting assessment model outputs to standardized format |
| tests/testthat/test-convert_output.R | Test suite for convert_output function with SS3 model tests |
| tests/testthat/fixtures/prepare_ss3_output_files.R | Test fixture preparation script for downloading and running SS3 models |
| vignettes/convert_output_details.Rmd | Comprehensive documentation of standardization process and naming conventions |
| man/convert_output.Rd | Generated documentation for convert_output function |
| man/stockplotr-package.Rd | Updated package documentation with r-universe link |
| inst/resources/ss3_var_names.csv | SS3 variable name standardization mappings |
| inst/resources/fims_var_names.csv | FIMS variable name standardization mappings |
| inst/resources/bam_var_names.csv | BAM variable name standardization mappings |
| pkgdown/_pkgdown.yml | Added vignette link to package website navigation |
| NAMESPACE | Added convert_output to exported functions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
075aada to
58eb93f
Compare
New version checklist
|
New version checklist
|
Summary
convert_output()was a previous export from asar. Over time, we have found that the functions in this package are more dependent on the converted output and would fit better in {stockplotr} than {asar}. The files from {asar} have been moved from asar to this repo including:References to this function within asar or stockplotr have been changed (i.e.
asar::convert_output()-->stockplotr::convert_output()What to know