There are basically three steps to getting set up. Getting the three fonts that we want to use installed is the first thing you need to do. Then we're going to install R and a couple of R packages we need, as well as load up the Nylon Calculus fonts.
Open the fonts folder in the same directory as these tutorials. Install each font. On both OSX and Windows you do this by double clicking on the font and the pressing the Install button on the font book that pops up. You can throw away the fonts folder once you've installed all three fonts.
Go to: http://www.r-project.org/
Pick "download R" from the Getting Started text box.
Choose whatever. CRAN is basically a bunch of servers that mirror R and R packages. Generally a server close to you will be faster but it really doesn't matter much.
Choose your operating system from the links at the top.
Choose "Download R 3.1.1"
Run the downloaded file to install R.
IF YOU ARE RUNNING WINDOWS: You also need to go get rtools at this point: http://cran.r-project.org/bin/windows/Rtools/. Grab that and install.
Open R. You will be looking at a command prompt. You can install packages from the menus, but we might as well get used to using the prompt.
At the prompt type:
This may take a few seconds. Once your prompt shows again, you can verify that ggplot2 was installed by typing:
You may get a warning, just ignore it (unless it says: 'there is no package called ggplot2', in which case let me know and we will trouble shoot). The library command is how R loads commands included in packages. You need to issue this command every time you open R and want to use ggplot!
In addition to ggplot, which is the main graphing package we'll be using, we also need the extrafont package, the devtools package, and the nyloncalc package I created:
The last little bit of setup you need to do is to load the new fonts into R.
It may take quite a while to run the last command, especially if you have lots of fonts on your system. Once it finishes, you can verify that R has access to the Nylon Calculus fonts by typing fonts(). R will return a list of all fonts that are available to it:
Somewhere on your list you should have Gulim, Daniel, and Chalk Line Outline. If you do, you're all set up.