2 Preparation for Workshop
Please follow the instructions in this section prior to attending the 2020 NABs conference.
2.1 Install R and R Studio
Please install R and R Studio by following the links below.
Software | Link |
---|---|
R | https://cran.r-project.org/bin/windows/base/ |
R Studio | https://www.rstudio.com/products/rstudio/download/#download |
2.2 Updating Software and Packages
2.2.1 R
For Windows Operating Systems, run the following code in the RGui, NOT in R Studio. The RGui should be installed when you install R. On my Windows machine, I access RGui by clicking on the R program file– my current file name is “R x64 3.6.2”.
Once you have the RGui open, copy and paste the R code below into the R Console window. Make sure R Studio is closed before running this code within the RGui. Hit enter once to install the installr package. Hit enter a second time to run the installer package function updateR()
and follow the instructions.
This code was copied from: https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/).
2.2.2 R Studio
- Open R Studio
- Click on “Help” on the toolbar
- Click on “Check for Updates”
- Follow instructions
2.2.3 R-Packages
- Open R Studio
- Click on “Tools” on the toolbar
- Click on “Check for Package Updates…”
- Follow instructions
2.2.3.1 Packages for the Workshop
Please run the following code within R Studio to make sure you have all of necessary packages for this workshop installed.
- Open R Studio
- Copy the following code
package.vec <- c("tidyverse", "lubridate",
"knitr", "rmarkdown", "markdown", "bookdown", "caTools", "bitops",
"DT", "leaflet", "shiny", "jsonlite", "plotly",
"data.table", "rprojroot", "viridis")
install.packages(package.vec)
- Paste the code into the Console within R Studio
- Hit Enter
- If prompted with “Do you want to restart R prior to installing?”, select “Yes”
- If prompted again then select “No”
- The packages should begin to install. This may take some time.