pfmc-assessments / sa4ss

Generate a stock assessment document from Stock Synthesis output
https://pfmc-assessments.github.io/sa4ss/
Other
12 stars 7 forks source link

Add function to create parameter table #97

Open iantaylor-NOAA opened 1 year ago

iantaylor-NOAA commented 1 year ago

This branch, created in March, should just be merged so the functions for parameter tables are more easily available to {sa4ss} users. I am interested in helping with additional tables functions as discussed in #78, but I don't see having time for that in the short term.

This PR adds adds functions for creating a table of parameters. The code is copied and adapted from lingcod.

Code like

cat("\\begin{landscape}")
table_pars_split(mod_base)
cat("\\end{landscape}")

will produces multiple tables with formatting like the snipped below. It's on the user to figure out how many tables get produced and add text like Parameters values are shown in Tables \ref{tab:table-pars-base-1}-\ref{tab:table-pars-base-16}. More detail (including info copied above) in: https://github.com/pfmc-assessments/sa4ss/issues/78#issuecomment-1464537660.

image

iantaylor-NOAA commented 1 year ago

@kellijohnson-NOAA and I decided to postpone merging this pull request and instead will wait until after the 2023 PFMC assessments are complete in order to have more time to combine these changes with other table-related functions in a more comprehensive way.

I'm converting the PR to draft so the record remains.

For the 2023 petrale sole assessment, I will just add these functions (or something like them) to https://github.com/pfmc-assessments/petrale/.