-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Correctly avoid writing to the input file when there are no preserved HTML chunks #2535
Conversation
… character vector: https://github.com/rstudio/htmltools/blob/a8a3559edbfd9dda78418251e69273fa9dfeb9bc/R/tags.R#L1581-L1583 so we need to compare the collapsed version vs the extracted value later in identical()
The GHA failures seem to be due to the withr binary package. |
I'll have a look - withr 3.0.0 was just release yesterday - so maybe some issues with the binary available for installation 🤔 |
Created a unit-test with an example code that triggered the error. Unfortunately, since I don't have write access, this is now in a new pull request: |
Co-authored-by: Yihui Xie <[email protected]>
…ss .md/.markdown files)
@cderv The withr issue is gone now. @J-Moravec Thanks for adding the test! |
Thanks for a quick fix and for creating many packages that hugely improved the replicability not just in science @yihui ! |
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.
Looks good!
Fix #2534:
htmltools::extractPreserveChunks()
will collapse the input character vector: https://github.com/rstudio/htmltools/blob/a8a3559edbfd9dda78418251e69273fa9dfeb9bc/R/tags.R#L1581-L1583 so we need to compare the collapsed version vs the extracted value later inidentical()
.