Remove draft watermark
remove_draft(
x = list.files(getwd())[grep("skeleton.qmd", list.files(getwd()))],
dir = getwd()
)
Remove the notation adding a watermark "DRAFT" from the skeleton.qmd
file produced from create_template()
. The function requires the user to
either be in the working directory where the skeleton is located or use the
dir
argument to direct the function to where to file is located. The user
must use this before rendering the final report for the watermark to be
removed.
{
create_template()
remove_draft(x = "SAR_species_skeleton.qmd", dir = file.path(getwd(), "report"))
}
#> Warning: Results file or model name not defined.
#> Warning: Results file or model name not defined.
#> [1] "__________Built YAML Header______________"
#> Authorship is not defined.
#> [1] "_______Add Report Citation________"
#> [1] "___Created report template______"
#> Saved report template in directory: /tmp/RtmpZd1Ffo/file1f9d5d5f9953/reference/report
#> To proceeed, please edit sections within the report template in order to produce a completed stock assessment report.