mitchelloharawild / vitae

R Markdown Résumés and CVs
https://pkg.mitchelloharawild.com/vitae/
1.19k stars 229 forks source link

Inserting a good-looking table #249

Open gungorMetehan opened 3 months ago

gungorMetehan commented 3 months ago
library(knitr)
courses <- data.frame("Year" = c(2023, 2023, 2022),
                      "Course" = c("Data Science", "AI", "Data Mining"),
                      "Organization" = c("ABC", "DEF", "GHI"))
kable(courses, align = "cll")

These line commands are suitable to knit a good-looking table to PDF. But, they didn't work in awesomecv template. Do you know why?

Error Message: ! LaTeX Error: Environment longtable undefined.

Error: LaTeX failed to compile CV.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See CV.log for more info. Execution halted

Note. kableExtra package does not work either (knitting to PDF).

mitchelloharawild commented 1 month ago

You'll need to load the longtable LaTeX package: https://github.com/rstudio/rticles/issues/93#issuecomment-402785760