I can't knit when I use the export_sums command.

I have created a new R-Markdown file. After that I installed the packages needed and I use the library command to call them. I can see the table nice and clean in my RMD file but I can't knit it. I attached pictures of the command in R and the Data I am using.

knitr::opts_chunk$set(echo = TRUE)

library(stargazer)
library(jtools)
library(boot)
library(sandwich)
library(lmtest)
library(plyr)
library(psych)
library(ggplot2)
library(car)
library(mosaic)
library(vtable)
library(tidyverse)
library(pastecs)
library(tinytex)
library(huxtable)

This is the error I get in my Console:
! LaTeX Error: File `siunitx.sty' not found.

! Emergency stop.
<read *>

Error: LaTeX failed to compile Final-Project.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See Final-Project.log for more info.
Execution halted


The error message suggests that you view a tinytex page. Did you do that?
A similar error message and its solution are described in https://yihui.org/tinytex/#maintenance .
I don't think there is a better explanation of what to do. Success!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.