I'm doing a report that is heavy in R
but also would like to use system fonts, so I was hoping to be able to use Sweave
and XeLaTeX
.
My preferred tex editor is TexShop (Mac 10.7), but it seems to only allow me to select either Sweave or XeLaTeX. I can produce a .tex file from Sweave and then manually run that through the XeLaTeX engine after adjusting the packages/fonts, but it seems like there must be an easier way.
It looked to me like RStudio had this functionality, but when I chose XeLaTeX as the typesetter it yields the error: [object Uint8Array]' is not a valid argument for 'Function.prototype.apply'
, which looks like some sort of C
-based code. The Sweave document that produces that error is:
\documentclass{article}
\begin{document}
\SweaveOpts{concordance=TRUE}
Text
\end{document}
pdfLatex compiles it fine. Resources I checked on using XeLaTeX and Sweave don't address this issue as far as I've been able to see.