sty
filesYou can copy missing sty
files into your working
directory from the internet .
Better, you can get a more complete Latex distribution. If you
install Xcode
, Xcode command line first
, and
MacPorts
(all of which are good to have for scientific
computing) you can open a terminal and run
sudo port install texlive-latex-extra
pdflatex
is on the search path by typing in a terminalwhich pdflatex
Note that the homework does not ask you to use Rstudio. You can just run R in a terminal window.
Using Rstudio sometimes introduces problems. This is fairly rare, but in this particular case it happened to several people that Rstudio behaved inappropriately with the Rnw file.
In general, stripping away an unnecessary layer of code (here, Rstudio) is worth trying when debugging.