Skip to content
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

unit-test for #2534 #2536

Merged
merged 3 commits into from
Jan 17, 2024
Merged

unit-test for #2534 #2536

merged 3 commits into from
Jan 17, 2024

Conversation

J-Moravec
Copy link
Contributor

Unit-test for this particular user-case.

Running pandoc is unfortunately necessary.

Tested on CRAN version of rmarkdown and a dev version using this fork.

In case of CRAN version, pandoc also likes to throw some additional warnings and errors that cannot be suppressed (or at least I don't know how).

If a withr::with_tempfile() is required instead of on.exit(), I can rework this. Since on.exit is already used in this file, I thought that it won't be confusing.

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Thank you!

tests/testthat/test-render.R Outdated Show resolved Hide resolved
tests/testthat/test-render.R Outdated Show resolved Hide resolved
@yihui yihui merged commit 58a41a6 into rstudio:fix-2534 Jan 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants