tibble(id = list.files(pattern = "\\.qmd$") %>% gsub(".qmd$", "", .)) %>%
filter(!(id == "index")) %>%
mutate(Title = read_lines(paste0(id, ".qmd"), skip = 1, n_max = 1) %>% gsub("title: ", "", .),
Last_download = as.Date(file.info(paste0("~/Library/Mobile\ Documents/com~apple~CloudDocs/website/data/ec/", id, ".RData"))$mtime),
Last_compile = as.Date(file.info(paste0("~/Library/Mobile\ Documents/com~apple~CloudDocs/website/data/ec/", id, ".html"))$mtime)) %>%
mutate(html = paste0('<a target=_blank href=https://fgeerolf.com/data/ec/', id, '.html > html </a>')) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}