options(tinytex.latexmk.emulation = T) # 確実にアンダースコアを回避するにはコピーしかない file.copy(system.file("resources/bibliography/rmdja.bib", package="rmdja"), "./") file.copy(system.file("resources/styles/css", package="rmdja"), "./", recursive = T) file.copy(system.file("resources/styles/img", package="rmdja"), "./", recursive = T) img_dir <- "img/" dir.create(img_dir, recursive = T) file.copy(file.path(system.file("resources/img", package = "rmdja"), c("Johannes_Gutenberg.jpg")), img_dir) knitr::opts_chunk$set( echo = F, comment = "", dev.args = list(family = if(knitr::is_html_output()) list() else list(family = "Noto Sans Serif CJK JP")), tidy = "styler" ) require(tidyverse) require(knitr)
(ここに壮大な幕開け)
knitr::include_graphics("img/Johannes_Gutenberg.jpg")
data(iris) head(iris, n = 10) %>% kable(booktabs = T, caption = "表のスタイルを自由に変更") %>% kableExtra::row_spec(seq(1, 10, by = 2), color = "red")
data(iris) ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) + geom_point()
$$ f(x|\mu,\,\sigma^{2})=\frac{1}{\sqrt{2\pi}\sigma}\exp\left(-\frac{(x-\mu)^{2}}{2\sigma^{2}}\right) $$
[@Okumura2017LaTeX] [@doughertyforthcomingHandsOn; @R-ggdag; @R-ggthemes; @R-rmarkdown; @R-tidyverse;]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.