Welcome to the R Markdown Basics Seminar!
Requirements
Before beginning the seminar, please make sure you have R and RStudio installed.
Please also make sure to have the following R packages installed, and if not, run these commands in R (RStudio).
install.packages("rmarkdown", dependencies=TRUE)
install.packages("tidyverse", dependencies=TRUE)
You will also need to have some sort of TeX distribution (e.g. MikTeX) on your computer to compile the LaTeX documents in this seminar. If you do not believe you have TeX installed, you can install a small, but sufficient version of it through R by running:
install.packages("tinytex", dependencies=TRUE)
Then you will need to run the following in RStudio to install TeX on your computer (this may take several minutes):
tinytex::install_tinytex()
You should restart RStudio afterwards before beginning the seminar.
Practice Files
The seminar also uses 3 files to practice R Markdown syntax. Please download these to a directory you can find on your computer. You can download them all at once as a zip, or individually (right-click to download):
- Zip file of all data files (contains the 3 files below)
- sleep_study.rmd
- mileage.rmd
- txhousing_sales.rmd
Seminar
R Markdown Basics Seminar: Left-click the link to open the presentation directly. To download with all images, open the presentation (by left-clicking), then right-click in the presentation, select “Save As”, and then make sure you save as type “Webpage, Complete” (Note: this will download the webpage and a folder of images and style files).
Use any web browser (Chrome, Firefox, etc.) to view the seminar. Once it is open, use the following keys to alter the display:
- use arrow keys, mouse click, or spacebar to advance slides
'a'
toggles between slide-show view and handout view (view all slides at once)'k'
to disable advancing slides with mouse-click (if you need to copy-paste code, for example)'s'
andb
to make the font bigger and smaller'F11'
to go to full-screen and back
(Alternative, flat (no slides) version of the presentation: R Markdown Basics seminar Flat).