Skip to content

Empty title knitr warnings removed from tests#459

Open
beckmj wants to merge 1 commit into
insightsengineering:mainfrom
beckmj:feature/quiet_knit_tests
Open

Empty title knitr warnings removed from tests#459
beckmj wants to merge 1 commit into
insightsengineering:mainfrom
beckmj:feature/quiet_knit_tests

Conversation

@beckmj

@beckmj beckmj commented Apr 23, 2026

Copy link
Copy Markdown

Pull Request

Fix #447
Adopted recommended solution of providing a default title if none is present.
Tests no longer return knitr text:
"[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'report.knit' as the title.
To specify a title, use 'title' in metadata or --metadata title="..."."

Results from test_file('tests/testthat/test-render.R') and test_file('tests/testthat/test-to_rmd.R')
image

@github-actions

github-actions Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

✅ All contributors have signed the CLA
Posted by the CLA Assistant Lite bot.

@beckmj

beckmj commented Apr 23, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Remove knit warnings from tests

2 participants