Skip to content

Commit

Permalink
eval in workshop table
Browse files Browse the repository at this point in the history
  • Loading branch information
SchmidtPaul committed Feb 2, 2024
1 parent 01c7a43 commit 5804a4c
Show file tree
Hide file tree
Showing 14 changed files with 242 additions and 112 deletions.
320 changes: 218 additions & 102 deletions docs/index.html

Large diffs are not rendered by default.

Binary file added docs/src/eval/eval_2211_Bonn_DS1.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2305_BMEL_DS1eng.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2305_BMEL_DS1ger.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2305_Bonn_DS1.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2306_BMEL_DS2eng.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2306_BMEL_DS2ger.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2307_Bonn_DS1.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2307_Flensburg_DS1.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2312_BMEL_DS2eng.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2312_BMEL_DS2ger.pdf
Binary file not shown.
Binary file added docs/src/eval/eval_2312_Bonn_DS1.pdf
Binary file not shown.
26 changes: 21 additions & 5 deletions docs/src/get workshop table.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@ workshops <- raw %>%
Lang = Language,
Plat = Platform,
Location = Label_Location,
Duration = as.integer(h)
Duration = as.integer(h),
ID = ID
)


# Evaluations -------------------------------------------------------------
IDs_with_eval <- list.files(here::here("src", "eval"), ".pdf$") %>%
str_remove(".pdf$") %>%
str_remove("eval_")

workshops <- workshops %>%
mutate(
Eval = case_when(
ID %in% IDs_with_eval ~ str_c('<a href="https://github.com/SchmidtPaul/Schmidtpaul.github.io/blob/main/src/eval/eval_', ID,'.pdf" target="_blank">view</a>'),
.default = ""
)
) %>%
select(-ID)


# Flags -------------------------------------------------------------------
flag_urls <- c(Ger = "https://github.com/SchmidtPaul/Schmidtpaul.github.io/blob/main/img/flag_ger.png?raw=true",
Eng = "https://github.com/SchmidtPaul/Schmidtpaul.github.io/blob/main/img/flag_usa.png?raw=true")
Expand Down Expand Up @@ -65,14 +81,14 @@ workshops <- workshops %>%
bootstrap_options = c("hover", "condensed")
) %>%
column_spec(1, width = "4em") %>%
column_spec(2, width = "23em") %>%
column_spec(2, width = "26em") %>%
column_spec(3, width = "2em",
image = spec_image(imgs_flag, 50, 50)) %>%
column_spec(4, width = "2em",
image = spec_image(imgs_platform, 50, 50)) %>%
column_spec(5, width = "20em") %>%
column_spec(6, width = "4em")

column_spec(5, width = "17em") %>%
column_spec(6, width = "4em") %>%
column_spec(7, width = "2em")

# gt instead of kable -----------------------------------------------------

Expand Down
8 changes: 3 additions & 5 deletions src/get workshop table.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ IDs_with_eval <- list.files(here::here("src", "eval"), ".pdf$") %>%
workshops <- workshops %>%
mutate(
Eval = case_when(
ID %in% IDs_with_eval ~ str_c('<a href="https://github.com/SchmidtPaul/Schmidtpaul.github.io/blob/main/src/eval/', ID,'.pdf" target="_blank">view</a>'),
ID %in% IDs_with_eval ~ str_c('<a href="https://github.com/SchmidtPaul/Schmidtpaul.github.io/blob/main/src/eval/eval_', ID,'.pdf" target="_blank">view</a>'),
.default = ""
)
) %>%
Expand Down Expand Up @@ -81,17 +81,15 @@ workshops <- workshops %>%
bootstrap_options = c("hover", "condensed")
) %>%
column_spec(1, width = "4em") %>%
column_spec(2, width = "23em") %>%
column_spec(2, width = "26em") %>%
column_spec(3, width = "2em",
image = spec_image(imgs_flag, 50, 50)) %>%
column_spec(4, width = "2em",
image = spec_image(imgs_platform, 50, 50)) %>%
column_spec(5, width = "20em") %>%
column_spec(5, width = "17em") %>%
column_spec(6, width = "4em") %>%
column_spec(7, width = "2em")


workshops
# gt instead of kable -----------------------------------------------------

# # gt ----------------------------------------------------------------------
Expand Down

0 comments on commit 5804a4c

Please sign in to comment.