Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Answers
Answers Knowledge Base
Teams
, (opens new window)

School of Information Studies
Results will update as you type.
  • Administrative Guidelines & Policies
  • Admissions & Recruiting
  • Answers Documentation Style Guide
  • Budget, Payroll & HR
  • Career Services and Professional Development
  • iSchool Undergraduate Student Support Program
  • Facilities
  • Marketing and Communications
  • Student Services
  • Technology Services
    • Contacting Technology Services
    • Research Resources
    • Technology Resources
      • Technology resources for Faculty and Staff
      • Technology Resources for Students and Instructors
        • iSchool Spaces, Technology & Operation
        • Academic software and services
          • Azure Lab Services - iSchool
          • Lab Management with Faronics Insight
          • Power View for Excel
          • R-Studio Package Management
          • Academic Software for Faculty and Students
          • Student Printing
          • Connecting to remote computers/servers
          • Blackboard Help
          • Remote Desktop Services - RDS
      • Policies and procedures
      • Tech resources for Faculty and Staff
    Calendars
You‘re viewing this with anonymous access, so some content might be blocked.
/
R-Studio Package Management
Updated Jul 01

    R-Studio Package Management

    Updates to R packages rarely time up with our terms, often requiring updates to either R or other packages in the middle of the semester causing lost time in the classroom. The instructions below include how to point R-Studio to specific releases of packages, as well as getting the latest packages from CRAN.



    • 1 CRAN Latest - RStudio
    • 2 Installing Older Versions of Packages
      • 2.1 Using Devtools to Install Older Package Versions
      • 2.2 Installing an Older Package From Source



    CRAN Latest - RStudio

    In the case that a package isn't updated in the Latest Packages Repository, the link is malfunctioning, or the link was lost you can use the Global CRAN repository to fulfill your R packages needs.

    1. Open RStudio


    2. Navigate to Tools > Global Options...


    3. On the Options menu, click on Packages located on the left-hand menu




    4. Under Primary CRAN repository, click Change




    5. Under CRAN Mirrors, click on Global (CDN) - RStudio



    6. Click OK


    7. Click Apply

    Installing Older Versions of Packages

    Using Devtools to Install Older Package Versions

    1. Open RStudio

    2. Click on File > New File > R Script

    3. In the script window, type require(devtools). Then on the next line type,  install_version(package name, version = #, repos = "http://cran.us.r-project.org")

      1. Example: install_version("ggplot", version = "0.9.1", repos = "http://cran.us.r-project.org")

    Installing an Older Package From Source

    1. Open RStudio

    2. Click on File > New File > R Script

    3. In the script window, type packageurl ← package url. Then on the next line type,  install.packages(packageurl, repos = NULL , type = "source")

      1. Example: 

        1. packageurl ←  "http://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_0.9.1.tar.gz"

        2. install.packages(packageurl, repos=NULL, type="source")

    , multiple selections available, Use left or right arrow keys to navigate selected items
    ischool
    {"serverDuration": 8, "requestCorrelationId": "6e4dc98618db4cf6a82fcf75be1c4287"}