

You can also create HTML or Word documents by choosing the appropriate output format here. (This will check that MiKTeX was appropriately installed. In the resulting screen, select Document on the left and select PDF as the Default Output Format. Select File > New File > R Markdown from the RStudio taskbar menu.

These types of documents will give you the ability to nicely document your code, include your code, and also the output that your code produces. You can request a consultation for help or, for in-person workshops, come a little early to the workshop to get help from the instructor or a TA.To check that R, RStudio, and TeX have been installed correctly, we will create a sample R Markdown document. If you get an error or different message than what you see above, the package may not have installed correctly.

To test the package installation, load the package by typing the following command at the console (type the command and hit Enter): library(tidyverse) This does not necessarily mean there is anything wrong. You will see lots of messages, some of them in red text, while the packages are installing. If you run into issues, you can request a consultation for help, or come a little early to the workshop to get help from the instructor or a TA. Tidyverse is actually a large set of packages, so it can take a long time to install. While installing tidyverse, if you are prompted with a yes or no question about compiling or installing from source, choose NO. In the main console window, typing the following command at the prompt (type the command and hit Enter): install.packages("tidyverse") After installing R and RStudio, open RStudio.

It takes a while to install, so it’s good to install ahead of time. The tidyverse set of packages is needed for several workshops. For more detailed instructions, see Installing and Loading Packages from Danielle Navarro. Information on required packages may be sent ahead of time, may be listed in the workshop repository, or you may be asked to install additional packages during the workshop. For all options above, you may need to install additional packages.
