--- subtitle: "Slides" author: "" execute: freeze: false --- ```{r} #| output: asis data.frame(fd = dir(".", pattern = "\\d{1}\\.\\d{1}[-_]")) |> dplyr::mutate( fn = purrr::map_chr( fd, ~ file.path(.x, dir(.x, pattern = "index.qmd|index.html|index.ppt*"))[1] ) ) |> dplyr::transmute( htmlstr = purrr::map2_chr(fn, fd, \(x, y) { paste0( "## [", y, "](", x, ")\n\n", ifelse( !grepl("qmd$", x), "", paste0( "\n\n" ) ) ) }) ) |> dplyr::pull(htmlstr) |> paste(collapse = "") |> cat() ```