mitchelloharawild / vitae

R Markdown Résumés and CVs

Home Page:https://pkg.mitchelloharawild.com/vitae/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inserting a good-looking table

gungorMetehan opened this issue · comments

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).

You'll need to load the longtable LaTeX package: rstudio/rticles#93 (comment)