This workshop is a gentle introduction to using the language R to perform basic computational tests on Tolkien texts. Attendees will remake Tolkien’s stories into their own by manipulating the text computationally. We will also open the conversation into what the digital humanities can bring to Tolkien studies, beyond what is learned in this workshop. This workshop does not assume prior coding knowledge.
Please bring along your laptops with both R and RStudio installed via [https://cran.r-project.org/] and [https://www.rstudio.com/products/rstudio/], or feel free just to observe. Installation assistance can be provided during the workshop if you encounter difficulties. (See below for further instructions for on installing these on your own*).
All texts used in this workshop can be found at
https://github.com/TorontoYYZ/Workshop.
Learners of all ages (including children) are welcome. If you would like me to make this accessible, please let me know via email (christinadinh.nguyen@mail.utoronto.ca) beforehand and I will be happy to accomodate.
These are the types of tests we will learn to do:
- word count
- sentiment analysis
- word clouds
___________
*Installing R and RStudio
R is the program that "runs" every command you tell the computer. RStudio is a pretty way of writing those commands, and makes it easier on the eyes.
1. Open the pages https://cran.r-project.org/ and https://www.rstudio.com/products/rstudio/.
R is a programming language, and a free software environment to execute the R language. That means we could use the R program's environment to write our programs, but RStudio has a better look and layout for writing code.
2. On the homepage of the cran.r-project.org site, please click the blue underlined text saying "download R" near the top of the page. Then from the list, select the location that is nearest to you. Then click on the download link that is appropriate for your computer's operating system (e.g. Windows is mine). Then click on "base", then click on "Download R [version number]" and install.
3. To install RStudio, we go to the rstudio homepage that we opened in step 1. Click on "download" at the very top of the page.
Scroll down, and you will see that there are four options for RStudio (desktop free, desktop paid, server, and pro). We will use the desktop free version. Click on that option and download it. Choose the correct operating system and install.
Video of these instructions, courtesy of Nadia Muhe at the University of Toronto: https://play.library.utoronto.ca/watch/04146e604fe5d528824cc56d7fd923a1