render compile
This commit is contained in:
@@ -11,7 +11,6 @@ format:
|
||||
lang <- "cn"
|
||||
require(tidyverse)
|
||||
require(learnr)
|
||||
knitr::opts_chunk$set(echo = TRUE)
|
||||
```
|
||||
|
||||
# 开始之前
|
||||
@@ -222,6 +221,8 @@ devtools::install_github("kjhealy/socviz")
|
||||
|
||||
## 安装R包
|
||||
|
||||
视频
|
||||
|
||||
{{< video https://vimeo.com/203516241 width="300" height="200">}}
|
||||
|
||||
|
||||
@@ -235,6 +236,7 @@ devtools::install_github("kjhealy/socviz")
|
||||
|
||||
```{r}
|
||||
#| results: 'asis'
|
||||
#| echo: false
|
||||
rmdify::slideend(
|
||||
wechat = FALSE,
|
||||
type = "public",
|
||||
|
||||
@@ -5,15 +5,6 @@ format:
|
||||
logo: _extensions/drwater/dwsd/inst/ucaslogo.png
|
||||
---
|
||||
|
||||
```{r}
|
||||
#| include: false
|
||||
#| cache: false
|
||||
lang <- "cn"
|
||||
require(tidyverse)
|
||||
require(learnr)
|
||||
knitr::opts_chunk$set(echo = TRUE)
|
||||
```
|
||||
|
||||
## 数据类型
|
||||
|
||||
### 数值型
|
||||
@@ -53,7 +44,7 @@ c(TRUE, FALSE)
|
||||
|
||||
## 特殊值
|
||||
|
||||
::: columns
|
||||
:::: columns
|
||||
::: {.column width="45%"}
|
||||
- `NA`: 这是最常见的NA类型,表示缺失值
|
||||
- `NA_integer_`: 这是NA的整数类型
|
||||
@@ -62,8 +53,7 @@ c(TRUE, FALSE)
|
||||
- `NA_complex_`: 这是NA的复数类型
|
||||
|
||||
:::
|
||||
::: {.column width="5%"}
|
||||
:::
|
||||
|
||||
::: {.column width="45%"}
|
||||
```{r}
|
||||
#| echo: true
|
||||
@@ -74,7 +64,7 @@ Inf
|
||||
```
|
||||
|
||||
:::
|
||||
:::
|
||||
::::
|
||||
|
||||
## 特殊值
|
||||
|
||||
|
||||
@@ -5,3 +5,4 @@ lang: zh
|
||||
background-image: _extensions/drwater/dwsd/inst/ucaslogo.png
|
||||
execute:
|
||||
freeze: true
|
||||
echo: true
|
||||
|
||||
@@ -8,6 +8,7 @@ execute:
|
||||
|
||||
```{r}
|
||||
#| output: asis
|
||||
#| echo: false
|
||||
|
||||
data.frame(fd = dir(".", pattern = "\\d{1}\\.\\d{1}[-_]")) |>
|
||||
dplyr::mutate(
|
||||
|
||||
@@ -468,7 +468,7 @@ figure > figcaption {
|
||||
}
|
||||
|
||||
.reveal div.sourceCode pre code {
|
||||
background-color: #002233;
|
||||
background-color: #eeeeff;
|
||||
min-height: 100%;
|
||||
/* font-size: x-large; */
|
||||
}
|
||||
@@ -476,3 +476,16 @@ figure > figcaption {
|
||||
.reveal div.sourceCode pre code:hover {
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
.reveal ol, .reveal dl, .reveal ul {
|
||||
display: block;
|
||||
text-align: left;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
div.column {
|
||||
display: contents;
|
||||
overflow-x: initial;
|
||||
vertical-align: top;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ website:
|
||||
execute:
|
||||
freeze: false # re-render only when source changes
|
||||
cache: false
|
||||
echo: false
|
||||
echo: true
|
||||
|
||||
format:
|
||||
dwhm-html: default
|
||||
|
||||
Reference in New Issue
Block a user