-
Notifications
You must be signed in to change notification settings - Fork 183
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
Error with shiny example #6
Comments
Thanks for the feedback. You need the development version of shiny: devtools::install_github('rstudio/shiny') |
Thanks
|
Could you provide a minimal reproducible example? |
|
BTW how do I avoid an R Markdown example rendering? Hope you can follow that there is a data.frame Confirmed that this code opens fine with CRAN shiny but not after
|
@pssguy You need to indent the example by 4 spaces: https://github.com/yihui/knitr/blob/master/CONTRIBUTING.md The Github version of shiny added an |
@yihui b)Guess I should have read the notes. My bad. What are the security implications? |
@pssguy In general, you should not allow unescaped HTML content in your app, otherwise you might be subject to XSS attacks: http://en.wikipedia.org/wiki/Cross-site_scripting I guess I'd better not discuss it in detail in the public. In your case, the input is a fixed data frame, and it is probably safe. |
Thanks for link. Hopefully, this will be OK as is. Is there an alternative approach you know of if I want to embed a youtube video? |
I do not see why embedding a Youtube video needs DataTables. Why not just something like
in ui.R? If you just need the table layout, you can use
instead of a DataTable. |
Thanks for this. Definitely looking to the 'coming soons' in the tutorial
shiny::runApp(system.file('examples', 'DT-shiny', package = 'DT'))
Error in if (q$search[["value"]] != "") { : argument is of length zero
The text was updated successfully, but these errors were encountered: