author | categories | date | tags | thumbnail | title | description | ||
---|---|---|---|---|---|---|---|---|
TC |
|
2015-07-26 |
|
xaringan_example_theme |
a theme example |
Add the following chunk in your xaringan slide.
```{r echo=TRUE}
use_theme_github = function(theme = "tcgriffith/xaringan_theme_example", ref =
"master") {
bn = basename(theme)
css_remote = paste0("https://raw.githubusercontent.com/",
theme,
"/",
ref,
"/",
bn,
".css")
css_name = basename(css_remote)
xfun::download_file(css_remote)
htmltools::includeCSS(css_name)
}
use_theme_github("tcgriffith/xaringan_theme_example", "83908f")
```
<iframe class="testiframe" src="https://tcgriffith.github.io/xaringan_theme_example/use_master.html">
Fallback text here for unsupporting browsers, of which there are scant few.
</iframe>