Skip to content

Add titlepage_pdf() wrapper, helper, docs, and tests - #306

Open
jkylearmstrong wants to merge 2 commits into
quarto-dev:mainfrom
jkylearmstrong:jkylearmstrong-add-titlepage-pdf-function
Open

jkylearmstrong wants to merge 2 commits into
quarto-dev:mainfrom
jkylearmstrong:jkylearmstrong-add-titlepage-pdf-function

Conversation

@jkylearmstrong

Copy link
Copy Markdown

Why: Provide an R wrapper to render PDF title/cover pages using the nmfs-opensci/quarto_titlepages Quarto extension so package users can programmatically create cover pages from R.

Approach: Adds a public titlepage_pdf() function and an internal prepare_titlepage_dir() helper. The helper prefers example qmds from the installed template (example_1/2/3) and falls back to documented article qmd or a generated minimal .qmd. Image support and no_prompt behavior (auto-true in non-interactive sessions) were implemented. Documentation (roxygen) for find_quarto was added and roxygen warnings fixed. Unit and integration tests were added/updated.

Notes/Reviewers: The change prefers rendering template-provided example QMD files to ensure deterministic PDF output in tests. The integration tests are designed to skip when Quarto or LaTeX are unavailable. No external behavior changes expected for other functions.

Files changed: R/titlepage.R, R/titlepage-utils.R, R/quarto.R (docs), R/publish.R (docs), man/, tests/testthat/

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

jkylearmstrong and others added 2 commits September 13, 2026 08:41
Add a public titlepage_pdf() that uses the nmfs-opensci/quarto_titlepages extension to
render PDF title pages. Refactor preparation into prepare_titlepage_dir(), add image support,
add unit and integration tests, and document find_quarto. Fix roxygen warnings and update tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant