R and Rstudio

R is a programming language which is commonly used in bioinformatics and statistics.

Mac

  1. Install R:
    1. Open an internet browser and go to www.r-project.org.

    2. Click the “download R” link in the middle of the page under “Getting Started.”

    3. Select a CRAN location (a mirror site) and click the corresponding link.

    4. Click on the “Download R for (Mac) OS X” link at the top of the page.

    5. Click on the file containing the latest version of R under “Files.”

    6. Save the .pkg file, double-click it to open, and follow the installation instructions.

    7. Now that R is installed, you need to download and install RStudio.

  2. To install R Studio:
    1. Go to www.rstudio.com and click on the “Download RStudio” button.

    2. Click on “Download RStudio Desktop.”

    3. Click on the version recommended for your system, or the latest Mac version, save the .dmg file on your computer, double-click it to open, and then drag and drop it to your applications folder.

  3. To Install the SDSFoundations Package
    1. Download SDSFoundations to your desktop (make sure it has the .tgz extension).

    2. Open RStudio.

    3. Click on the Packages tab in the bottom right window.

    4. Click “Install.”

    5. Select install from “Package Archive File.”

    6. Select the SDSFoundations package file from your desktop.

    7. Click install. You are done! You can now delete the SDSpackage file from your desktop.

Windows Users

  1. To Install R:
    1. Open an internet browser and go to www.r-project.org.

    2. Click the “download R” link in the middle of the page under “Getting Started.”

    3. Select a CRAN location (a mirror site) and click the corresponding link.

    4. Click on the “Download R for Windows” link at the top of the page.

    5. Click on the “install R for the first time” link at the top of the page.

    6. Click “Download R for Windows” and save the executable file somewhere on your computer. Run the .exe file and follow the installation instructions.

    7. Now that R is installed, you need to download and install RStudio.

  2. To Install RStudio
    1. Go to www.rstudio.com and click on the “Download RStudio” button.

    2. Click on “Download RStudio Desktop.”

    3. Click on the version recommended for your system, or the latest Windows version, and save the executable file. Run the .exe file and follow the installation instructions.

  3. To Install the SDSFoundations Package
    1. Download SDSFoundations to your desktop (make sure it has the .zip extension).

    2. Open RStudio.

    3. Click on the Packages tab in the bottom right window.

    4. Click “Install.”

    5. Select install from “Package Archive File.”

    6. Select the SDSFoundations package file from your desktop.

    7. Click install. You are done! You can now delete the SDSpackage file from your desktop.