Installation of R and RStudio on a PC - DSBS



CDN, 20-NOV-2018Installation of R and RStudio on a PCAs preparation for the course, you need to have an installation of R and RStudio on your PC. Below, the suggested location is C:\R, but it could be in another location (where you have write-access in order to able to install R packages). It is suggested to use the latest versions of R (version 3.5.1) and Rstudio (version 1.1.463), but other versions would also be ok for the course. R is also available for Mac and Linux, but this is not covered below.Installation of RIn a file explorer, create the folder C:\RUse a browser to download the latest version of R from the downloaded fileclick ’Run’If asked, enter your windows passwordClick OK (to use english language during installation)Click NextClick Next Select Destination Location to be C:\RClick Next multiple times until installation begins and end with ’Finish’Install the ”tidyverse” collection of packagesDouble-click the file C:\R\R-3.5.1\bin\i386\Rgui.exetype the commandinstall.packages("tidyverse")(Pick Denmark as the CRAN mirror)Installation of RStudioDownload latest version of RStudio Desktop as a ”Zip/Tarball” from the downloaded file and choose ’Extract all files’. As Destination, choose C:\R\RStudio-1.1.463 and press Extract.In file explorer, navigate to C:\R\RStudio-1.1.463\binRight-click on the file rstudio.exe and choose ”Create Shortcut”Move the created short-cut to your desktop for easy accessDouble-click the shortcut and remove the tick-mark in ”Always ask before opening this file” and click RunOpen the menu Tools/Options and edit the ”R version” to be C:\R\R-3.5.1 (if it is not already set to this)Install packagesAt an R prompt, issue the following command:> install.packages(c("lme4", "nlme", "lmerTest", "emmeans"))Select the CRAN mirror to be in ”Denmark” (if asked).Problems? Contact Claus Dethlefsen (CDN@) ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download