Problems with LaTeX/TeXLive in R Markdown
Hello fellas,
I´m doing and R Markdown project to create profile sheets of a bunch of soil profiles. If I render the Markdown for a specific number of my parameter, it works perfectly and I get my PDF output. When I try to make a list with all the parameters and then render the markdown document for each of the numbers, I get the error message
"! Undefined control sequence. l.170 \toprule LaTeX failed to compile...".
Now my question if anyone had a similar problem and if you have an any idea why it works until I try to render multiple params at once. Grateful for any help.
This is an error from LaTeX. So it will depend on what is the .tex content to be rendered to PDF.
And this .tex content will depend on what .Rmd content you have that creates this LaTeX code. It could come from a R Package, or from Pandoc.
If you want more help on this, you need to share more and try to share example, possibly minimal to reproduce and find the bottom issue.
Once it was happening because someone uses kableExtra and did not saw in the documentation that some requirements are needed
- https://github.com/rstudio/rmarkdown/issues/1384
You should check that. And maybe search for more issues on the web.