No specific processing when inside quarto for special collapse ASIS TOKEN #2248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
to fix quarto-dev/quarto-cli#5052
I believe the issue is that we previously did not run
as.character()
when inside htmlwidget processingknitr/R/output.R
Lines 481 to 487 in a007b37
We were passing
x
now we run
knitr/R/output.R
Line 494 in 99cd65a
with
knitr/R/output.R
Lines 467 to 475 in 99cd65a
And Quarto does a brute force replacement in namespace
https://github.com/quarto-dev/quarto-cli/blob/4977f4501632de13a92cca6cfebac26f4baa2326/src/resources/rmd/patch.R#L111-L118
So the
x
received in not the same.Quick solution as 1.3 will go out really soon, is to ignore quarto when doing the processing. Especially because there is no issue.
See #2212 (review)
@yihui Do you think this is enough, or we should rethink the fix ?
BTW I found this issue by chance following a report on community. We should really consider running Quarto checks with the dev version of knitr before doing a release. I'll add some run of the Quarto checks with dev knitr too.