RMarkdown Shortcuts - Slide Number Not Displayed in Browser

I do slide shows in RStudio using RMarkdown and exporting to ioslides. This works fine in the RStudio preview window, but when I open the html file in my browser (Chrome version 45.0.2454.85 m (64-bit version)), the slide number (n / total) is not displayed, only "/", (Except Moreover, the code highlighting is shown as bold).

This happens even if I use slide examples in RStuido.

Any suggestions on how to fix this?

Edit: I think this happens with every document, but here is one example that does not show page numbers in the browser:

--- title: "test" author: "JohannesNE" date: "28. sep. 2015" output: ioslides_presentation --- ## R Markdown This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>. 
+6
source share
1 answer

This is a security bug in Chrome.

One way to bypass slides:

 Rscript -e 'servr::httd()' -p9999 

or

 python -m SimpleHTTPServer 9999 

in the slides HTML file directory, then go to http: // localhost: 9999 / test.html .

This should show # and avoid a security error until RStudio people can find a way to adapt the HTML to meet Chrome’s security requirements.

NOTE that this was fixed on October 1, 2015 - https://github.com/rstudio/rmarkdown/commit/718e101d8bc095e50d25170ae0a9804c2dd1b18e (so this workaround is no longer necessary if you are using what is now a version of github, but soon is the CRAN version of rmarkdown ).

+3
source

All Articles