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.
tools/update-jquery.R
yourself to verify that the source is correct). This method of updating dependencies is based on what Shiny currently does (e.g., https://github.com/rstudio/shiny/blob/main/tools/updatejQuery.R)Obviously there is no
jquery.min.js
in the Rapporter CDN currently, so the only way to reference the updated jQuery is, for example, by settingportable.html = FALSE
inPandoc.brew
. This is some example code from the README that I used to check:Note that the relevant code from
convert.R
is this, which uses local JavaScript source files instead of from the CDN:When
portable.html = TRUE
(default), the example gives several errors in the browser console (unable to access the CDN). When it's set to FALSE, there are fewer errors because it uses local versions, but there is one that may be related to the update of jQuery:This error points to line 84 in
custom.js
, which is this:The other side effect of this is that the page items load horizontally, instead of vertically. I'm guessing this is to do with the removal of slimbox but I'm not sure.
Sorry that I can't provide a fully functional patch, but hopefully this is a good start!
Thanks.