Skip to content

Instantly share code, notes, and snippets.

@lcolladotor
Last active August 29, 2015 14:08
Show Gist options
  • Save lcolladotor/c837e901752bdbec7dc1 to your computer and use it in GitHub Desktop.
Save lcolladotor/c837e901752bdbec7dc1 to your computer and use it in GitHub Desktop.
---
output:
knitrBootstrap::bootstrap_document:
theme.chooser: TRUE
highlight.chooser: TRUE
html_document:
toc: true
theme: united
---
Test
====
<link rel='stylesheet' href='http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css' />
<script src='http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js'></script>
```{r results = 'asis', echo = FALSE}
library('knitr')
top <- data.frame(a = 1:4, b = 5:8)
kable(top, format = 'html', table.attr='id="top_table"')
```
<script> </script>
```{r}
print('test1')
```
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#top_table').dataTable({
"sPaginationType": "full_numbers",
"sScrollX": "100%"
});
});
</script>
Testing syntax recognition.
```{r}
print('test2')
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment