The manuscript I\'m preparing for publication requires the body of text and R code to be prepared using Sweave (integrates with LaTeX, executed inside RStudio). I\'ve manage