├── Figures ├── cran01.png ├── cran02.png ├── cran03.png ├── rtools00.png ├── rtools01.png ├── rtools02.png ├── rtools03.png ├── rtools04.png ├── rtools05.png ├── rtools06.png ├── rtools07.png ├── rtools08.png ├── rtools09.png ├── rtools10.png ├── rtools11.png ├── rtools12.png ├── rtools13.png ├── rtools14.png ├── rtools15.png ├── admin_run.png ├── devtools01.png ├── devtools02.png ├── install_r01.png ├── install_r02.png ├── install_r03.png ├── install_r04.png ├── install_r05.png ├── install_r06.png ├── install_r07.png ├── install_r08.png ├── install_r09.png ├── install_r10.png ├── install_r11.png ├── install_r12.png ├── rstudio01.png ├── rstudio02.png ├── rstudio03.png ├── rstudio04.png ├── rstudio05.png ├── rstudio06.png ├── rstudio07.png ├── rstudio08.png ├── rstudio09.png └── rstudio10.png └── README.md /Figures/cran01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/cran01.png -------------------------------------------------------------------------------- /Figures/cran02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/cran02.png -------------------------------------------------------------------------------- /Figures/cran03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/cran03.png -------------------------------------------------------------------------------- /Figures/rtools00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools00.png -------------------------------------------------------------------------------- /Figures/rtools01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools01.png -------------------------------------------------------------------------------- /Figures/rtools02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools02.png -------------------------------------------------------------------------------- /Figures/rtools03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools03.png -------------------------------------------------------------------------------- /Figures/rtools04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools04.png -------------------------------------------------------------------------------- /Figures/rtools05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools05.png -------------------------------------------------------------------------------- /Figures/rtools06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools06.png -------------------------------------------------------------------------------- /Figures/rtools07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools07.png -------------------------------------------------------------------------------- /Figures/rtools08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools08.png -------------------------------------------------------------------------------- /Figures/rtools09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools09.png -------------------------------------------------------------------------------- /Figures/rtools10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools10.png -------------------------------------------------------------------------------- /Figures/rtools11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools11.png -------------------------------------------------------------------------------- /Figures/rtools12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools12.png -------------------------------------------------------------------------------- /Figures/rtools13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools13.png -------------------------------------------------------------------------------- /Figures/rtools14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools14.png -------------------------------------------------------------------------------- /Figures/rtools15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rtools15.png -------------------------------------------------------------------------------- /Figures/admin_run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/admin_run.png -------------------------------------------------------------------------------- /Figures/devtools01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/devtools01.png -------------------------------------------------------------------------------- /Figures/devtools02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/devtools02.png -------------------------------------------------------------------------------- /Figures/install_r01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r01.png -------------------------------------------------------------------------------- /Figures/install_r02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r02.png -------------------------------------------------------------------------------- /Figures/install_r03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r03.png -------------------------------------------------------------------------------- /Figures/install_r04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r04.png -------------------------------------------------------------------------------- /Figures/install_r05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r05.png -------------------------------------------------------------------------------- /Figures/install_r06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r06.png -------------------------------------------------------------------------------- /Figures/install_r07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r07.png -------------------------------------------------------------------------------- /Figures/install_r08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r08.png -------------------------------------------------------------------------------- /Figures/install_r09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r09.png -------------------------------------------------------------------------------- /Figures/install_r10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r10.png -------------------------------------------------------------------------------- /Figures/install_r11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r11.png -------------------------------------------------------------------------------- /Figures/install_r12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/install_r12.png -------------------------------------------------------------------------------- /Figures/rstudio01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio01.png -------------------------------------------------------------------------------- /Figures/rstudio02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio02.png -------------------------------------------------------------------------------- /Figures/rstudio03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio03.png -------------------------------------------------------------------------------- /Figures/rstudio04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio04.png -------------------------------------------------------------------------------- /Figures/rstudio05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio05.png -------------------------------------------------------------------------------- /Figures/rstudio06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio06.png -------------------------------------------------------------------------------- /Figures/rstudio07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio07.png -------------------------------------------------------------------------------- /Figures/rstudio08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio08.png -------------------------------------------------------------------------------- /Figures/rstudio09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio09.png -------------------------------------------------------------------------------- /Figures/rstudio10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genomicsclass/windows/HEAD/Figures/rstudio10.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Setting up R and RStudio in Windows 2 | 3 | ## Running as Administrator 4 | 5 | - When you run the installers, make sure to run them as administrator. 6 | - Select the file, right click and choose **Run as administrator** 7 | 8 | 9 | ## Installing R 10 | 11 | - Open your browser and go to http://cran.r-project.org/ 12 | - Click on `Download R for Windows` 13 | 14 | - Click on `base` 15 | 16 | - Click on `Download R 3.1.2 for Windows` 17 | 18 | - Open and run the file you just downloaded `R-3.1.2-win.exe` 19 | 20 | - There is no need to change the default installation! 21 | 22 | | . | . | . | 23 | | :-----------------------------------------------------: | :-----------------------------------------------------: | :-----------------------------------------------------: | 24 | | | | | 25 | | **1** | **2** | **3** | 26 | | | | | 27 | | **4** | **5** | **6** | 28 | | | | | 29 | | **7** | **8** | **9** | 30 | | | | **DONE** | 31 | | **10** | **11** | | 32 | 33 | - Please make sure you install the latest version of R (R version 3.1.2). 34 | 35 | ## Installing Rtools 36 | 37 | Now we need to install Rtools 38 | 39 | - Open your browser and go to http://cran.r-project.org/ 40 | - Click on `Download R for Windows` 41 | 42 | - Click on `Rtools` 43 | 44 | - Download `Rtools31.exe` 45 | 46 | - Open and run the file you just downloaded `Rtools31.exe` 47 | 48 | - Again, there is no need to change the defaults 49 | 50 | | . | . | . | 51 | | :--------------------------------------------------: | :--------------------------------------------------: | :--------------------------------------------------: | 52 | | | | | 53 | | **1** | **2** | **3** | 54 | | | | | 55 | | **4** | **5** | **6** | 56 | | | | | 57 | | **7** | **8** | **9** | 58 | | | | | 59 | | **10** | **11** | **12** | 60 | | | **DONE** | | 61 | | **13** | **14** | | 62 | 63 | ## Installing RStudio 64 | 65 | - If you have already installed RStudio, before you skip this section check if you are using the right R version. Go to `Tools/Global Options`. Make you sure you have `R-3.1.2` under R version 66 | 67 | 68 | 69 | - Go to http://www.rstudio.com/ and click on `Desktop` 70 | 71 | 72 | 73 | - Select `DOWNLOAD RSTUDIO DESKTOP` 74 | 75 | 76 | 77 | - Download the installer for Windows 78 | 79 | 80 | 81 | - Open and run the file you just downloaded `RStudio-0.98.1091.exe` 82 | 83 | 84 | 85 | - You don't have to change any of the defaults for the installation 86 | 87 | | . | . | . | 88 | | :---------------------------------------------------: | :---------------------------------------------------: | :---------------------------------------------------: | 89 | | | | | 90 | | **1** | **2** | **3** | 91 | | | | **DONE** | 92 | | **4** | **5** | **6** | 93 | 94 | ## Installing devtools 95 | 96 | - Open Rstudio, in the **Files/Plots/Packages/Help** panel, select **Packages** and then click on **Install** 97 | 98 | 99 | - Type `devtools` under **Packages**, make sure you spell the name of the package correctly. Then, click on **Install** 100 | 101 | 102 | - Alternatively, you can run the following command in the console: 103 | 104 | ``` 105 | install.packages("devtools") 106 | ``` 107 | 108 | ## Installing packages from GitHub 109 | 110 | We are ready to install R packages from GitHub 111 | 112 | - First we need to load the `devtools` package 113 | 114 | ```r 115 | library(devtools) 116 | ``` 117 | 118 | - Now we can install the `gapminder` package. 119 | 120 | ```r 121 | install_github("jennybc/gapminder") 122 | ``` 123 | 124 | ## License 125 | 126 | http://opensource.org/licenses/MIT 127 | --------------------------------------------------------------------------------