-
Notifications
You must be signed in to change notification settings - Fork 12
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
Warning: A runtime exception has occured while executing JavaScript #46
Comments
Hi, glad to hear the package has been helpful. In trouble-shooting this issue, it looks like everything is still building properly, but the warning is coming from something related to the {kableExtra} code. If I comment out the last line in the pipe and use
I'm not sure where the specific issue is, but it apparently has to do with executing some Javascript that I'm guessing is being inserted somewhere when using the additional {kableExtra} functions. |
Totally agree with everything @jhelvy said, it's also my diagnosis. Looking at the JS error...
This line hints to me that kableExtra is assuming that jQuery is loaded. That's usually a reasonable assumption in the R Markdown and Shiny world, but xaringan doesn't use jQuery. You could try sticking with kableExtra and adding the following chunk somewhere in your slides. It might fix your issue or it might create new ones 🤪 ```{r jquery, echo=FALSE}
htmltools::tagList(rmarkdown::html_dependency_jquery())
``` |
Ah come on.... what could possibly go wrong. 🤯 I am writing a talk on creating publication ready tables: Adding the jquery dependency seems to fix the warning without blowing up anything else. I am profoundly grateful for all you guys do. If you make it down to Miami dinner is on me. |
Ah thanks for the offer and kind words and good luck with your talk! One more little tip that might save (or create) some headaches down the line. For very complicated tables or when the dependencies start to interact between the different packages, you can use the |
Thank you again! Now I owe you both dinner and drinks. 😄 |
I've done what @gadenbuie mentioned with I appreciate the thanks. Also I've never seen a shiny app used for a course site, very cool interactive timeline! |
Hello John,
Thank you so much for making xaringanBuilder. It has been a great help to me and my students. I am having a problem with it building a slide deck. Can I do anything to fix the warning/exception/problem shown below?
The issue:
The code
The Rmd file
Session info
The text was updated successfully, but these errors were encountered: