Knitting Issues
Apple M1/M2
As of August 2023, it seems that there is no version of RStudio built for Apple Silicon Macs (M1/M2). To follow the progress and read some background you might want to check out this blog.
In the meantime, it should work fine to use an Intel-based version of RStudio, through an emulator called Rosetta. You can install Rosetta with the following steps.
Press Command-Space to open Spotlight Search, then enter Terminal.
Click on Terminal to launch the utility.
Copy and paste the following command:
- Press the Enter key.
TinyTex
Another common issue if you cannot knit the document is that your LaTeX distribution (for example the recommended TinyTeX) has not been properly installed. Go back and see if you got an error message when you tried to install TinyTeX.
One known error is:
The directory /usr/local/bin is not writable.
To fix this error and make the folder writable, you would need to do the following:
Press Command-Space to open Spotlight Search, then enter Terminal.
Click on Terminal to launch the utility.
Copy the following command and paste it into Terminal followed by Enter. (Type your computer password followed by Enter if promted.)
- Copy the following command and paste it into Terminal followed by Enter. (Type your computer password followed by Enter if promted.)
- Copy the following command and paste it into Terminal followed by Enter. (Type your computer password followed by Enter if promted.)
- Uninstall TinyTeX. In RStudio Console:
- Re-install TinyTeX. In RStudio Console: