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
Ignoring appended content; appendContent can't be used in a Shiny render call #3992
Comments
The htmlDependency is the right approach, I would think. Can you show me what you tried? |
I tried some variations of this:
|
actually, that seems to works and the error must be somewhere else.. Thank you for your time! |
I did some further testing and downloaded the Javascript into This worked and the HTML head looked like this: When using
and the head-tag looks like this: I am not sure how I can control the order of the scripts or why not all google JS files get downloaded.. |
Can you try installing shiny 1.7.5.1? That will tell us if the async related changes to renderContent are causing this (I’m almost certain they are). |
Still no success with shiny 1.7.5.1. (Also no luck with 1.7.4) The html head looks identical to the one above (using My session info
|
I took over maintenance of
leaflet.extras
and ran into this "bug" where I can't attach a script tag with the Google URL + API key.This line is the problem:
https://github.com/trafficonese/leaflet.extras/blob/master/R/search.R#L210
I tried to add it as a
htmlDependency
, but then I get another error in the browser console, thatgoogle
is not defined.What is now the correct way of doing this?
Or is that strictly forbidden, because of security concerns or the new async shiny way?
The text was updated successfully, but these errors were encountered: