-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create NMFS completion certificates & use quarto for certificates #146
base: main
Are you sure you want to change the base?
Conversation
* Add certificate_type for standard/NMFS * Move file on completion * Add quiet and ... to pass to quarto::quarto_render * Fix example * Add quarto to Imports
Dec 20Thanks @ateucher for the screenshare to resolve this. I updated Quarto & RStudio &
Out of date:Error in my setup preventing me from testing.
Session info
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPDATE: copied from comment above
create_certificate
gave errorError: argument "cohort_type" is missing, with no default
Worked well for me in our late-Dec screenshare. Thank you @ateucher !
This updates
create_certificate()
andcreate_batch_certificates()
to create a certificate for the NMFS Openscapes champions using a nmfs-specific template, using Quarto with typst pdf output. It also switches the original certificate creation to use Quarto + typst instead of Rmarkdown + LaTeX.The template (NMFS or standard Openscapes) is chosen via the new parameter
cohort_type
("standard"
, the default, or"nmfs"
).Because Quarto doesn't support writing to a different directory, I added code to match existing behaviour to move the file to a specified directory once it's created.
I also added some robustness to
create_batch_certificates()
with atryCatch()
inside the loop, and some more basic type checking and handling of dates.Still TODO: Move pathways template here as well (#99) (NOTE: Will do in a separate PR after this is merged)
Closes #144