officedown
๋งค๋ด์ผ์๋ ' rpptx_document2
๋ ๋ถ๋ค์ด ํจํค์ง์ ๋ฌธ๋ฒ์ ๋ฐ๋ฅธ ์ํธ์ฐธ์กฐ๋ฅผ ์ง์ํ๋ค' ๋ผ๊ณ ๋์ด ์์ง๋ง ์ค์ ๋ก๋ rpptx_document2
๋ผ๋ ํจ์๊ฐ ์์ด์ ๋จ๊ฐ์ง์ ๋ฉ์ถ๋ค. ์ค๋ฅ๊ฐ ์๋ pptx ๋ฌธ์: Error: 'rpptx_document2' is not an exported object from 'namespace:officedown'
. ์ด ๋ฌธ์ ๋ก ์ธํด ๊ทธ๋ฆผ/ํ ๋ฒํธ๋ฅผ ์ํธ ์ฐธ์กฐํ ์ ์์ต๋๋ค.
---
title: "Week 8"
author: "CLRR"
output:
officedown::rpptx_document2:
keep_md: TRUE
---
## test
Description
sessionInfo()
์ ๊ฒฐ๊ณผ๋ฅผ ์ ๊ณตํฉ๋๋ค.R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=Japanese_Japan.932 LC_CTYPE=Japanese_Japan.932 LC_MONETARY=Japanese_Japan.932 LC_NUMERIC=C LC_TIME=Japanese_Japan.932
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] viridis_0.5.1 viridisLite_0.3.0 magrittr_1.5 forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2 purrr_0.3.4 readr_1.4.0 tidyr_1.1.2
[10] tibble_3.0.4 ggplot2_3.3.2 tidyverse_1.3.0
loaded via a namespace (and not attached):
[1] tidyselect_1.1.0 xfun_0.19 haven_2.3.1 colorspace_1.4-1 vctrs_0.3.4 generics_0.1.0 htmltools_0.5.0 yaml_2.2.1
[9] rlang_0.4.8 pillar_1.4.6 withr_2.3.0 glue_1.4.2 DBI_1.1.0 gdtools_0.2.2 dbplyr_2.0.0 modelr_0.1.8
[17] readxl_1.3.1 uuid_0.1-4 lifecycle_0.2.0 munsell_0.5.0 gtable_0.3.0 cellranger_1.1.0 rvest_0.3.6 zip_2.1.1
[25] memoise_1.1.0 evaluate_0.14 labeling_0.4.2 knitr_1.30 fansi_0.4.1 broom_0.7.2 Rcpp_1.0.5 backports_1.2.0
[33] scales_1.1.1 jsonlite_1.7.1 farver_2.0.3 systemfonts_0.3.2 fs_1.5.0 gridExtra_2.3 hms_0.5.3 digest_0.6.27
[41] stringi_1.5.3 officedown_0.2.0.002 grid_4.0.2 cli_2.1.0 tools_4.0.2 crayon_1.3.4 pkgconfig_2.0.3 ellipsis_0.3.1
[49] xml2_1.3.2 rvg_0.2.5 reprex_0.3.0 lubridate_1.7.9 assertthat_0.2.1 rmarkdown_2.5 officer_0.3.15 httr_1.4.2
[57] rstudioapi_0.11 R6_2.5.0 compiler_4.0.2
๋ด ํ๊ฒฝ์์ ์ฌ์ฉ ๊ฐ๋ฅํ Pandoc ๋ฒ์ ์ pptx ์ถ๋ ฅ์ ์์ฑํ๊ธฐ์ ์ถฉ๋ถํฉ๋๋ค.
rmarkdown::pandoc_version()
[1] โ2.10.1โ
packageVersion("officedown")
[1] โ0.2.0.2โ
๊ณ ๋ง์, ์ด๊ฒ์ ์ค์์๊ณ ๊ทธ ํ ์คํธ๋ ๊ฑฐ๊ธฐ์ ์์ด์๋ ์ ๋๋ค. ์ด์ ํด๊ฒฐ๋์์ต๋๋ค.
์๊ฒ ์ต๋๋ค. ํ์ง๋ง rpptx_document
์์ ์ํธ ์ฐธ์กฐ ๊ธฐ๋ฅ์ ์ง์ํ์ง ์์ต๋๊น? ์๋๋ฉด ์ด๋ฏธ ๊ทธ๋ฌํ ๋ณด์กฐ ๊ธฐ๋ฅ์ด ์์ต๋๊น?
์๋์ค, ์ด๊ฒ์ PowerPoint์์ ๊ฐ๋ฅํ ๊ธฐ๋ฅ์ด ์๋๋ฏ๋ก ๊ธฐ๋ฅ์ด ์๋๋๋ค. ์ฌ์ ํ ๋ถ๋ค์ด ์ํธ ์ฐธ์กฐ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค...
\@ref(...)
์ ์๋ฏธํฉ๋๊น?
์ค์ ๋ก ๋ค์ ์๋ ๊ทธ๋ฆผ ๋ฒํธ๋ฅผ ์ํธ ์ฐธ์กฐํ์ง ๋ชปํฉ๋๋ค.
---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Untitled"
output:
officedown::rpptx_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE)
library(officedown)
library(ggplot2)
library(rvg)
```
## Slide with Plot
::: columns
:::: column
```{r plot1, fig.cap='pressure'}
plot(pressure)
```
::::
:::: column
\@ref(fig:plot1)
::::
:::
์ค์ ๋ก ๋ค์ ์๋ ๊ทธ๋ฆผ ๋ฒํธ๋ฅผ ์ํธ ์ฐธ์กฐํ์ง ๋ชปํฉ๋๋ค.
์ด๊ฒ์ PowerPoint์์ ๊ฐ๋ฅํ ๊ธฐ๋ฅ์ด ์๋๊ธฐ ๋๋ฌธ์ ๊ธฐ๋ฅ์ด ์๋๋๋ค. ์ฌ์ ํ ๋ถ๋ค์ด ์ํธ ์ฐธ์กฐ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๋ ์ง: " r Sys.Date()
"
์ ์: "๋์ ์ด๋ฆ์"
์ ๋ชฉ: "๋ฌด์ "
์ฐ์ถ:
์คํผ์ค๋ค์ด::rpptx_document:
```{r ์ค์ , ํฌํจ=FALSE}
knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE)
๋์๊ด(์คํผ์ค๋ค์ด)
## Slide with Plot
::: columns
:::: column
```{r plot1, fig.cap='pressure'}
plot(pressure)
::::
:::: ์ด
\@ref(fig:plot1)
::::
:::
`````
๋ค์์ PPT์ฉ์ผ๋ก ๊ตฌํ๋ ๊ฒ์ ๋๋ค.
์ด ํจํค์ง๋ ๋ํ ๋ค์์ ์ ๊ณตํ์ฌ R Markdown์ผ๋ก PowerPoint ์ ์์ ํฅ์์ํต๋๋ค.
์ ํฌํจ๋ ์ฌ๋ผ์ด๋ ํ
ํ๋ฆฟ์ ๋ฐ๋ผ ๊ฒฐ๊ณผ๋ฅผ ๋ฐฐ์นํ๋ ๋ฉ์ปค๋์ฆ
"reference_doc"๋ก ์ฌ์ฉ๋๋ PowerPoint ๋ฌธ์. ์ฌ๋ฌ ๊ฐ ์ถ๊ฐํ๊ธฐ ์ฌ์์ง๋๋ค
๊ฐ์ ์ฌ๋ผ์ด๋์ ๋ด์ฉ์
๋๋ค.
ํจํค์ง๋ ๋ํ ๊ทธ๋ํฝ ์ง์นจ์ ๋ณํํ ์ ์๋ ๊ฐ๋ฅ์ฑ์ ์ ๊ณตํฉ๋๋ค.
๊ฐ๋จํ ๋ํํ์ฌ ํธ์ง ๊ฐ๋ฅํ ๋ฒกํฐ ๊ทธ๋ํฝ(rvg ํจํค์ง ํฌํจ)์ผ๋ก
dml
ํจ์์ ๋ํ ํธ์ถ์ ํธ์ถํฉ๋๋ค.
์ข์ ๋ณธ๋ณด๊ธฐ๋ฅผ ๋ณด์ฌ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค. base_format: bookdown::powerpoint_presentation2
์ด ํธ๋ฆญ์ ์ํํฉ๋๋ค...