I have this code which is running well in console.
BUt while running in R markdown and at time of conversion it gives error as below because of the line below:
print(knitr::kable(Total_Demand_Monthly_Per_Table,"simple", align=c("c"), booktabs=TRUE, digit=1, caption="Monthly Percentage of Total Demand"))
cat("\\newpage")
! Undefined control sequence.
l.571 \newp
& age{[}{]}(C & orn_Dema &
Error: LaTeX failed to compile Corn_Demand_Monitor.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See Corn_Demand_Monitor.log for more info.
Execution halted