Change order of figures and tables qmds - #534
Conversation
Checklist
|
|
@copilot Add these functionalities:
|
Implemented in commit
|
|
@copilot Update the changes to apply to not just 08/09 tables/figures docs; when create_template(type) = "nemt", the file should be changed from "05_tables.qmd" to "06_tables.qmd"; when create_template(type) = "safe", the file should be changed from "11_tables.qmd" to "12_tables.qmd". For figures and nemt, the file should be changed from "06_figures.qmd" to "05_figures.qmd"; when create_template(type) = "safe", the file should be changed from "12_figures.qmd" to "11_figures.qmd". |
Implemented in commit
I also added tests covering these legacy rename paths for both |
|
@copilot Update workflow so that, if a legacy figures/tables order is detected, the skeleton file is updated to place the figures chunk before the tables chunk |
| ) | ||
| ) | ||
| } | ||
| legacy_figures_docs <- c("09_figures.qmd", "06_figures.qmd", "12_figures.qmd") |
There was a problem hiding this comment.
Could you generalize this code as a function in utils then reference it in each function instead? This code is general repeated and applied to each function so it seems like you could. This is a decent amount of added code.
There was a problem hiding this comment.
Sorry to clarify I meant the entire added code and not just this line
Schiano-NOAA
left a comment
There was a problem hiding this comment.
Looks good from a functional standpoint, but please adjust based on my comments then please re-ping for review
Co-authored-by: sbreitbart-NOAA <181890943+sbreitbart-NOAA@users.noreply.github.com>
Co-authored-by: sbreitbart-NOAA <181890943+sbreitbart-NOAA@users.noreply.github.com>
Co-authored-by: sbreitbart-NOAA <181890943+sbreitbart-NOAA@users.noreply.github.com>
9d33271 to
fdec66a
Compare
…reate_template() to allow various types when interactive is F (#541)
What is the feature?
How have you implemented the solution?
Does the PR impact any other area of the project, maybe another repo?