library(dplyr)
spells <- dnd5e::spells %>%
  select(name) %>%
  mutate(link = paste0(name,".html"),
         link = gsub(" ","_",link))

cat(paste0("- [",spells$name,"](",spells$link,")"), 
    sep="\n\n") # need html/markdown line return


jarad/dnd5e documentation built on Oct. 15, 2023, 5:55 p.m.