Просмотр исходного кода

Rmd template now renders without showtext

Fixes #65
tags/v0.4.1
Garrick Aden-Buie 4 лет назад
Родитель
Сommit
f44ce08889
Не найден GPG ключ соответствующий данной подписи
2 измененных файлов: 10 добавлений и 5 удалений
  1. +3
    -0
      NEWS.md
  2. +7
    -5
      inst/rmarkdown/templates/xaringanthemer/skeleton/skeleton.Rmd

+ 3
- 0
NEWS.md Просмотреть файл

argument. Color names should be valid CSS classes that can also be used as CSS argument. Color names should be valid CSS classes that can also be used as CSS
variable names, but the `style_` function only stops with an error if the variable names, but the `style_` function only stops with an error if the
color name contains spaces. (@jdlom #69) color name contains spaces. (@jdlom #69)
* Fixed an issue that caused problems rendering the xaringanthemer R Markdown
template if the showtext package isn't installed (thanks @beatrizmilz, #65).


# xaringanthemer 0.4.0 # xaringanthemer 0.4.0



+ 7
- 5
inst/rmarkdown/templates/xaringanthemer/skeleton/skeleton.Rmd Просмотреть файл



--- ---


```{r plot-example-themed, eval=requireNamespace("ggplot2", quietly=TRUE)}
```{r plot-example-themed, eval=requireNamespace("showtext", quietly=TRUE) && requireNamespace("ggplot2", quietly=TRUE)}
g + xaringanthemer::theme_xaringan(text_font_size = 16, title_font_size = 18) + g + xaringanthemer::theme_xaringan(text_font_size = 16, title_font_size = 18) +
ggtitle("A Plot About Cars") ggtitle("A Plot About Cars")
``` ```


.footnote[Requires `{showtext}`]

--- ---
layout: false layout: false


## Square image ## Square image


<center><img src="https://octodex.github.com/images/labtocat.png" height="400px" /></center>
<center><img src="https://octodex.github.com/images/labtocat.png" alt="GithHub Octocat" height="400px" /></center>


.footnote[GitHub Octocat] .footnote[GitHub Octocat]




### Wide image ### Wide image


![](https://guides.github.com/activities/hello-world/branching.png)
![A wide image with a diagram of branching in git.](https://docs.github.com/assets/images/help/repository/branching.png)


.footnote[Wide images scale to 100% slide width] .footnote[Wide images scale to 100% slide width]


## Two images ## Two images


.pull-left[ .pull-left[
![](https://octodex.github.com/images/motherhubbertocat.png)
![A GitHub Octocat, style "mother hubber"](https://octodex.github.com/images/motherhubbertocat.png)
] ]


.pull-right[ .pull-right[
![](https://octodex.github.com/images/dinotocat.png)
![A GitHub Octocat, style "dinotcat"](https://octodex.github.com/images/dinotocat.png)
] ]


--- ---

Загрузка…
Отмена
Сохранить