render compile

This commit is contained in:
2026-05-21 14:40:44 +08:00
parent 61bd0bea2f
commit 845b840cc9
6 changed files with 23 additions and 16 deletions
+3 -1
View File
@@ -11,7 +11,6 @@ format:
lang <- "cn" lang <- "cn"
require(tidyverse) require(tidyverse)
require(learnr) require(learnr)
knitr::opts_chunk$set(echo = TRUE)
``` ```
# 开始之前 # 开始之前
@@ -222,6 +221,8 @@ devtools::install_github("kjhealy/socviz")
## 安装R包 ## 安装R包
视频
{{< video https://vimeo.com/203516241 width="300" height="200">}} {{< video https://vimeo.com/203516241 width="300" height="200">}}
@@ -235,6 +236,7 @@ devtools::install_github("kjhealy/socviz")
```{r} ```{r}
#| results: 'asis' #| results: 'asis'
#| echo: false
rmdify::slideend( rmdify::slideend(
wechat = FALSE, wechat = FALSE,
type = "public", type = "public",
+3 -13
View File
@@ -5,15 +5,6 @@ format:
logo: _extensions/drwater/dwsd/inst/ucaslogo.png 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%"} ::: {.column width="45%"}
- `NA`: 这是最常见的NA类型,表示缺失值 - `NA`: 这是最常见的NA类型,表示缺失值
- `NA_integer_`: 这是NA的整数类型 - `NA_integer_`: 这是NA的整数类型
@@ -62,8 +53,7 @@ c(TRUE, FALSE)
- `NA_complex_`: 这是NA的复数类型 - `NA_complex_`: 这是NA的复数类型
::: :::
::: {.column width="5%"}
:::
::: {.column width="45%"} ::: {.column width="45%"}
```{r} ```{r}
#| echo: true #| echo: true
@@ -74,7 +64,7 @@ Inf
``` ```
::: :::
::: ::::
## 特殊值 ## 特殊值
+1
View File
@@ -5,3 +5,4 @@ lang: zh
background-image: _extensions/drwater/dwsd/inst/ucaslogo.png background-image: _extensions/drwater/dwsd/inst/ucaslogo.png
execute: execute:
freeze: true freeze: true
echo: true
+1
View File
@@ -8,6 +8,7 @@ execute:
```{r} ```{r}
#| output: asis #| output: asis
#| echo: false
data.frame(fd = dir(".", pattern = "\\d{1}\\.\\d{1}[-_]")) |> data.frame(fd = dir(".", pattern = "\\d{1}\\.\\d{1}[-_]")) |>
dplyr::mutate( dplyr::mutate(
+14 -1
View File
@@ -468,7 +468,7 @@ figure > figcaption {
} }
.reveal div.sourceCode pre code { .reveal div.sourceCode pre code {
background-color: #002233; background-color: #eeeeff;
min-height: 100%; min-height: 100%;
/* font-size: x-large; */ /* font-size: x-large; */
} }
@@ -476,3 +476,16 @@ figure > figcaption {
.reveal div.sourceCode pre code:hover { .reveal div.sourceCode pre code:hover {
font-size: x-large; 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
View File
@@ -103,7 +103,7 @@ website:
execute: execute:
freeze: false # re-render only when source changes freeze: false # re-render only when source changes
cache: false cache: false
echo: false echo: true
format: format:
dwhm-html: default dwhm-html: default