Basically, make a file called Sweave.engine in
~/Library/TeXShop/Engines/
#!/bin/bash
export PATH=$PATH:/usr/texbin:/usr/local/bin
R CMD Sweave "$1"
pdflatex -interaction batchmode "${1%.*}"
pdflatex -interaction batchmode "${1%.*}"
The just select Sweave as the document type and Typeset now works, easy.
No comments:
Post a Comment