Hyperref doesn't work in rmarkdown

Hi!

Hello!

I'm currently working on my thesis in rmarkdown pdf latex. Last month I made a template that worked as expected, specifically with the package hyperref. Yet, after updating R and R Studio, the feature doesn't work anymore.

I have tried the following:

  1. Put the header-includes option in the YAML
  2. Put the hyperref setting in the document's body specifying it is a latex code and not markdown.
  3. Reinstalled tiny tex

None of the previous options had worked.

I'm out of ideas.

---
header-includes:
    - \usepackage{hyperref}
    - \definecolor{blue_r}{RGB}{0, 124, 145}
    - \hypersetup{colorlinks = true,  linkcolor = blue_r,  urlcolor  = blue_r, citecolor = blue_r}
---