publish lesson 6

This commit is contained in:
Ming Su 2024-03-21 22:43:49 +08:00
parent 67a4f22e5f
commit 1dd4be3b52
3 changed files with 3 additions and 8 deletions

View File

@ -80,7 +80,6 @@ knitr::opts_chunk$set(echo = TRUE)
```{r} ```{r}
#| echo: false #| echo: false
#| output: asis #| output: asis
#| include: false
coursememberdf <- readxl::read_xlsx("../../data/course_member.xlsx") coursememberdf <- readxl::read_xlsx("../../data/course_member.xlsx")
nmem <- nrow(coursememberdf) nmem <- nrow(coursememberdf)
set.seed <- 23 set.seed <- 23
@ -88,6 +87,7 @@ set.seed <- 23
uiddf <- coursememberdf |> uiddf <- coursememberdf |>
dplyr::mutate(uid = paste0("ruser", sprintf("%02d", sample(1:nmem, nmem)))) |> dplyr::mutate(uid = paste0("ruser", sprintf("%02d", sample(1:nmem, nmem)))) |>
dplyr::select(uid, 姓名) |> dplyr::select(uid, 姓名) |>
dplyr::mutate(姓名 = "**") |>
dplyr::arrange(uid) |> dplyr::arrange(uid) |>
dplyr::mutate(group = (dplyr::row_number() - 1) %/% 10 + 1) |> dplyr::mutate(group = (dplyr::row_number() - 1) %/% 10 + 1) |>
tidyr::nest(gdf = -group) |> tidyr::nest(gdf = -group) |>
@ -106,7 +106,6 @@ uiddf$tab[[2]]
```{r} ```{r}
#| echo: false #| echo: false
#| output: asis #| output: asis
#| include: false
uiddf$tab[[3]] uiddf$tab[[3]]
uiddf$tab[[4]] uiddf$tab[[4]]
@ -144,13 +143,9 @@ author: 姓名
``` ```
```` ````
## 欢迎讨论!{.center} ## 欢迎讨论!{.center}

View File

@ -325,7 +325,7 @@ figure > figcaption {
.reveal pre code:hover{ .reveal pre code:hover{
font-size: xx-large; font-size: xx-large;
line-height: 250%; line-height: 150%;
} }
section#title-slide p.subtitle { section#title-slide p.subtitle {

View File

@ -23,7 +23,7 @@ website:
page-navigation: true page-navigation: true
page-footer: "Copyright 2024, [Ming Su](https://drwater.rcees.ac.cn)" page-footer: "Copyright 2024, [Ming Su](https://drwater.rcees.ac.cn)"
navbar: navbar:
background: "grey" background: "light"
search: true search: true
right: right:
- icon: house - icon: house