Hi everyone. I have a problem with the preamble.tex file used in the Rmarkdown rticles template for R Journal Submission. This is the procedure I'm following:
- Create a new Rmarkdown
rticles template for submission to the R Journal
- Knit the document and everything seems to be fine
- Add some latex code to
preamble.tex (like \usepackage{subfig} )
- Knit the document and it doesn't compile anymore.
If I just remove \usepackage{subfig} from preamble.tex then everything works fine. I think the problem is related to the fact that the \usepackage{...} code isn't put in the preamble of the .tex document but I don't know how to fix that.
If you want to test the procedure above, I created a git repo here with all the Rmarkdown files up to point 3. If I knit the Rmd document that I get an error.
Hope it's clear enough. I posted the same question on SO.