From 768a3f1515d97217217c584f8fd1eee6dab74329 Mon Sep 17 00:00:00 2001 From: Petersen Date: Tue, 14 May 2024 17:47:23 -0500 Subject: [PATCH] 20240514 - R initial setup --- getting-started.qmd | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/getting-started.qmd b/getting-started.qmd index d9937279e..98c246392 100644 --- a/getting-started.qmd +++ b/getting-started.qmd @@ -1,4 +1,32 @@ # Getting Started with R for Data Analysis The book uses `R` for statistical analyses (). -R is a free software environment; you can download it at no charge here: +R is a free software environment; you can download it at no charge here: . + +## Initial Setup {#sec-initialSetup} + +To get started, follow the following steps: + +1. Install `R`: +1. Install `RStudio Desktop`: +1. After installing `RStudio`, open `RStudio` and run the following code in the console to install several key `R` packages: +```{r} +#| eval: false + +install.packages(c("petersenlab","tidyverse","psych")) +``` + +If you are in Dr. Petersen's class, also perform the following steps: + +1. Set up a free account on [GitHub.com](https://github.com). +1. Download GitHub Desktop: + +## Installing Packages {#sec-installingPackages} + +You can install R packages using the following syntax: + +```{r} +#| eval: false + +install.packages("INSERT_PACKAGE_NAME_HERE") +```