install.packages("/Users/USERNAME/Downloads/tikzDevice_0.6.2.tar",
repos = NULL, type = "source")
Overview
This is a short tutorial for getting tikzDevice running on R version 3.0. If you write in LaTeX and use R for statistics, this is a good way to get your plots/graphs/etc. into your .tex document. The advantages are:
- much higher quality and
- you can use IPA symbols
Download tiksDevice
tiksDevice
is no longer officially supported by CRAN because the author was having trouble keeping it updated in a timely manner (check out this webpage if you want to read a little more it). Nonetheless, the tikzdevice
package is very usable and still available for download. You can download the tar.gz file directly by clicking here.
Install tiksDevice
Installing a package that is no longer supported is by no means difficult, but not as simple as install.package('tikzDevice')
(try it if you want to see why). Use the following code install the tar file (make sure to specify your file path to wherever you downloaded the file). This is what it looked like for me.
Install dependencies
In order for tikzDevice
to work, you must also install the filehash
package. This is much easier.
install.packages('filehash')
That’s it. Check out this tutorial to see how to set up a project.