Skip to content

Reproduce skeleton with updates #160

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

Merged
merged 33 commits into from
Mar 26, 2025
Merged

Reproduce skeleton with updates #160

merged 33 commits into from
Mar 26, 2025

Conversation

Schiano-NOAA
Copy link
Collaborator

What is the feature?

  • Create new feature to re-render the skeleton after create_template is initially ran without overwriting other files -- this will be a temporary way to produce this feature. In the future, the goal is to allow the user to run create_template(rerender_skeleton=TRUE) in the console and make the changes in a simple, efficient way

How have you implemented the solution?

  • Added a new argument to create_template
  • Modularized create_template further

Does the PR impact any other area of the project, maybe another repo?

Base automatically changed from dev to main February 24, 2025 16:06
Schiano-NOAA and others added 6 commits February 26, 2025 13:29
* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
@Schiano-NOAA Schiano-NOAA changed the base branch from main to dev February 26, 2025 19:06
@sbreitbart-NOAA
Copy link
Collaborator

Can you please provide an example for how to use the new rerender_skeleton argument? I've been trying this and it's not producing a skeleton qmd with an updated species name in my original report folder (./report) nor the new report folder created in the original report folder (./report/report):

create_template(rerender_skeleton = TRUE, species = "Black sea bass", file_dir = "report")

@Schiano-NOAA
Copy link
Collaborator Author

Schiano-NOAA commented Mar 7, 2025

Can you please provide an example for how to use the new rerender_skeleton argument? I've been trying this and it's not producing a skeleton qmd with an updated species name in my original report folder (./report) nor the new report folder created in the original report folder (./report/report):

create_template(rerender_skeleton = TRUE, species = "Black sea bass", file_dir = "report")

I haven't added in an example because I feel like there are already a lot of examples in the script.

The way to use this feature is to run create_template(rerender_skeleton = TRUE, ...) you can select one of the arguments described in the documentation for now such as adding in a new section, changing the sectioning, updating the model output file name, adding an additional bibliography, adding more authors, and more. The caveat is that that working directory should be the "report" folder where the skeleton.qmd is located. The arguments in your example won't change anything. The argument assumes that you still want to use the same script and folder, but just update the skeleton with a few options (even though they could just be updated manually as well)

@sbreitbart-NOAA
Copy link
Collaborator

Can you please provide an example for how to use the new rerender_skeleton argument? I've been trying this and it's not producing a skeleton qmd with an updated species name in my original report folder (./report) nor the new report folder created in the original report folder (./report/report):
create_template(rerender_skeleton = TRUE, species = "Black sea bass", file_dir = "report")

I haven't added in an example because I feel like there are already a lot of examples in the script.

The way to use this feature is to run create_template(rerender_skeleton = TRUE, ...) you can select one of the arguments described in the documentation for now such as adding in a new section, changing the sectioning, updating the model output file name, adding an additional bibliography, adding more authors, and more. The caveat is that that working directory should be the "report" folder where the skeleton.qmd is located. The arguments in your example won't change anything. The argument assumes that you still want to use the same script and folder, but just update the skeleton with a few options (even though they could just be updated manually as well)

I keep running into issues. For instance, I'll enter the basic create_template(), then set the wd to "report", then enter asar::create_template(rerender_skeleton =T, alt_title = T, title = "my new title", office = "NWFSC", species = "new fish", new_section = "my_new_section", section_location = "after-introduction"). The skeleton qmd file is updated, but with the "{{< pagebreak >}} Please cite this publication as: " and output_and_quantities section repeated over and over.

@Schiano-NOAA
Copy link
Collaborator Author

Schiano-NOAA commented Mar 7, 2025 via email

@Schiano-NOAA
Copy link
Collaborator Author

@sbreitbart-NOAA I just pushed a fix to the issue. By repeating the species and other params parameters, it breaks the code for the yaml (good catch!). The code should now run as intended.
One thing I will note: you do not need to repeat any other arguments in the function. When rerendering the skeleton, you just need to run create_template(rerender_skeleton = TRUE...) then only add arguments for the things you want to change. While either way works, the other way is simpler and easier to follow.

Great- now the first example works. With the second, it either repeats the initial 3 authors and then adds the new one (when run as in my initial example), or if I remove the author argument, it now adds an "NA" author before my new one (Sun E Day). I think showing some examples of how someone might use this argument would be really useful here since I have shown multiple ways to use it incorrectly, or at least not in the intended way.

I can make a fix so it check to make sure authors are not repeated if someone happens to use the same code as before with just the new argument. My intention is that this approach to using create_template(rerender_skeleton=TRUE) is that users can just run in in the console to make quick adjustments/improvements

@Schiano-NOAA
Copy link
Collaborator Author

@sbreitbart-NOAA Can you rerun your example and let me know if you have any other issues?

#' changes to the main skeleton need to be made. This reproduces the
#' yaml, output (if changed), preamble quantities restructures your
#' sectioning in the skeleton if indicated. All files in your folder
#' will remain as is.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor note: the .Rd documentation needs updating (this doesn't appear in that file)

@sbreitbart-NOAA
Copy link
Collaborator

@sbreitbart-NOAA Can you rerun your example and let me know if you have any other issues?

If I run this code:

create_template(model_results = "converted_file_1126.csv",
                year = 2020,
                species = "Petrale sole",
                type = "SAR",
                prev_year = 2019,
                model = "SS3",
                author = c("John Snow", "Danny Phantom", "Patrick Star"),
                resdir = here::here(),
                rda_dir = here::here(),
                recruitment_unit_label = "mt",
                end_year = 2022,
                n_projected_years = 10,
                relative = FALSE,
                ref_line = "unfished",
                ref_point = 13000,
                landings_unit_label = "mt",
                spawning_biomass_label = "mt",
                ref_line_sb = "msy",
                ref_point_sb = 2000,
                indices_unit_label = "CPUE",
                biomass_unit_label = "mt",
                catch_unit_label = "mt")

setwd("report")

create_template(add_author = c("Sophie Breitbart"),
               rerender_skeleton = TRUE)

I get a skeleton.qmd file that still has an 'NA' before the newly added author:

image

@Schiano-NOAA
Copy link
Collaborator Author

@sbreitbart-NOAA I am not getting that. Have you pulled down the changed from online?

@sbreitbart-NOAA
Copy link
Collaborator

@sbreitbart-NOAA I am not getting that. Have you pulled down the changed from online?

Yes, I've fetched and rebased multiple times, and closed/reopened RStudio. Not sure what the issue is! If you're not getting it, then maybe it's not an issue?

Schiano-NOAA and others added 4 commits March 25, 2025 11:10
* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature
@Schiano-NOAA Schiano-NOAA merged commit f3f3f45 into dev Mar 26, 2025
@Schiano-NOAA Schiano-NOAA deleted the skeleton-render branch March 26, 2025 15:21
Schiano-NOAA added a commit that referenced this pull request Mar 26, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Mar 26, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 8, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 8, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 8, 2025
* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* Reproduce skeleton and add default draft watermark to reports (#160)

* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* Reproduce skeleton and add default draft watermark to reports (#160)

* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* fix vignette yaml

* Update custom-figs-tabs.Rmd - fix title

* update DESCRIPTION to move unnecessary dependencies to suggests (#175)

* reset branch to dev

* fix old rebase notation that got pushed

* fix old rebase notation that got pushed

* update(a11y fxns): adjust way alt text is added and the tagging function per work done in quarto-accessibility-reprex repo

* update(a11y fxns): update documentation and add in additional checks to fxns

* fix(add_alttext): fix error in loop

* Update ASAR.Rproj

* Move two utils fxns to individual R files (#188)

* Updated a11y vignette to clarify key quantities must always be checked by user

* Add abundance at age and biomass at age plots to create_figures_doc; add project to .gitignore

* Updating documentation to explain how to ensure landscape braces will work by updating Quarto

* moved ID_tbl_width_class() and export_split_tbls() from utils to own functions; also changed add_alttext.r to .R filetype

* Make test for ID_tbl_width_class()

* Make test for export_split_tbls() and add model output that makes a table large enough to split for said fxn

* Update stated locations of export_split_tbls() and ID_tbl_width_class()

* add landings table to create_tables_doc.R

---------

Co-authored-by: Schiano-NOAA <samantha.schiano@noaa.gov>
Co-authored-by: Sam Schiano <125507018+Schiano-NOAA@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 10, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 10, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 10, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
Schiano-NOAA added a commit that referenced this pull request Apr 10, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
sbreitbart-NOAA added a commit that referenced this pull request Apr 10, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
sbreitbart-NOAA added a commit that referenced this pull request Apr 10, 2025
* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
sbreitbart-NOAA added a commit that referenced this pull request Apr 14, 2025
#194)

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* Reproduce skeleton and add default draft watermark to reports (#160)

* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* Reproduce skeleton and add default draft watermark to reports (#160)

* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* reset branch to dev

* fix old rebase notation that got pushed

* fix old rebase notation that got pushed

* update(a11y fxns): adjust way alt text is added and the tagging function per work done in quarto-accessibility-reprex repo

* update(a11y fxns): update documentation and add in additional checks to fxns

* Update ASAR.Rproj

* Move two utils fxns to individual R files (#188)

* Updated a11y vignette to clarify key quantities must always be checked by user

* Add abundance at age and biomass at age plots to create_figures_doc; add project to .gitignore

* Updating documentation to explain how to ensure landscape braces will work by updating Quarto

* moved ID_tbl_width_class() and export_split_tbls() from utils to own functions; also changed add_alttext.r to .R filetype

* Make test for ID_tbl_width_class()

* Make test for export_split_tbls() and add model output that makes a table large enough to split for said fxn

* Reproduce skeleton and add default draft watermark to reports (#160)

* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* Reproduce skeleton and add default draft watermark to reports (#160)

* Merge newer dev branch into old (#148)

* Minor grammatical changes just to set up new dev-1.1 branch (changed quarto --> Quarto)

* Feat(vignettes):
-added tables of contents to vignettes
-added tip for how to edit rda files to a11y vignette
-added link to faqs vignette to a11y vignette re: how to edit alt text and captions

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>

* Custom template fixes (#143)

* update(create_template): comment out skeleton pop up at the end

* update(add_section): add functionality for putting new subsection into section

* Update(add_section): fix pathing for locating section to place code and change from add_chunk to add_child

* update(create_template): select only custom_sections when user wants to make a different outline of report

custom must = TRUE otherwise copies all files

* Fix(create_template): adjust if statement argument for custom_sections

* Add nmfspalette package back in

* removed add_theme and associated test and documentation

* remove static NOAA Fishies in authorship

* update NOAA fisheries affiliations

Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update(create_template): custom_sections adds all selected plus refs, acknow, and tables and figs if desired

* create(create_yaml): initial commit for fxn and remove from create_template

* update(create_template): remove yaml code from fxn and begin to sparse for rerender_skeleton arg

* update(create_template): code to find previous skeleton format in yaml

* update(create_template): begin to build foundation for rerender skeleton

* update(create_template): add authors if selected on rerender skeleton

* update(create_template): option to include additional parameters to yaml

* update(create_template): option to add bib file - cannot remove old one

* update(rerender): make improvements to functioning of rerender_skeleton arg in create_template after minimal testing

* update(create-template): fix issue with citation not created when skeleton is rerendered; can now add new section when skeleton is rerendered and keep those sectioning when skeleton is rerendered at a later time

* update(package): finish updates and checks for rerender skeleton arg; update documentation and other package needs

* update(rerender skeleton): update create_template to include other ways skeleton could be updated especially from blank; update yaml respectively

* update(create_template): finish going through fxn to adjust based on rerender_skeleton option

* update(create_template: allow users to update their results when they had initially run a blank template

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* test change to check PR

* remove test sentence

* test integration into new dev branch (minor grammatical change)

* update(create_template): add condition for when results files need to be updated in the yaml, add question if old skeleton should be deleted

* update(create_yaml): adjust fxn so that parameters are included or changed when indicated

* update(fxns): adjust issues with preamble incorrectly being added and sections into the new skeleton

* fix(create_yaml): remove trailing extra space at the end of the authors formatting

* update(create_yaml): fix issue when rerendering and params are kept from old call

* update function per group discussion

* fix(create_template): fix issue where authors are duplicated if the previous function was run with small changes to authors

* fix(create_template-rerender_skeleton): fix issue with new skeleton name wrongly produced when species name and other info is not present

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* Feature: add draft watermark to default docs (#174)

* feature(draft): initial commit to add in features to create_template where by default there is a draft watermark over the document, remove_draft created so user can remove the mark at the end

* fix(format_quarto): error in notation for includes in header for pdf - also fix remove_draft where the default was finding the tex file rather than the qmd file

* update(documentation): properly document remove_draft an update other various documentation around the functions modified for this feature

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

* improve(create_template): add new message for rerender_skeleton for directions at the end of fxn

---------

Co-authored-by: sbreitbart-NOAA <sophie.breitbart@noaa.gov>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>

* update DESCRIPTION to move unnecessary dependencies to suggests (#175)

* reset branch to dev

* fix old rebase notation that got pushed

* update(a11y fxns): adjust way alt text is added and the tagging function per work done in quarto-accessibility-reprex repo

* Delete ASAR.Rproj

* Updated links to test connection with new dev branch

* fix branch

* Reduce headings by one level as per suggestion from steering committee

---------

Co-authored-by: Schiano-NOAA <samantha.schiano@noaa.gov>
Co-authored-by: Sam Schiano <125507018+Schiano-NOAA@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Schiano-NOAA <Schiano-NOAA@users.noreply.github.com>
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.

2 participants