📖
lectures
  • All lectures and labs
    • Guidelines and rubrics
      • Lecture reflections
      • Office hours
      • Where are the readings, slides, and lecture videos?
      • How to submit an assignment
      • How to move a file in Google Drive
      • How to rename a file and folder in Google Drive
      • Highlighting and commenting assignment instructions
      • How to collaborate on the same Google document
      • How to embed an image in Canvas
      • Pomodoro technique
      • Which apps to download
      • How to use zbib.org for citations?
      • How to determine peer-reviewed journal articles?
      • Citation chaining procedure
      • ResearchRabbit: Literature discovery engine
      • Selective literature review
      • How to take a screenshot
      • Canvas notification settings
      • How to use Google Calendar
      • Presentation templates and samples
      • Qualitative (Content analysis) DRAFT research memo guideline and rubric
      • Qualitative (Content analysis) FINAL research memo guideline and rubric
      • How to use VPN (for Windows and macOS)
      • Letter of recommendation requests
    • Lectures
      • Social research
        • Social research: why and how
        • The ABC's of a research project
        • Introduction to datasets
        • Research ethics
        • Literature review I: Annual review articles and citations
        • Literature review II: citation chaining and discovery engine
        • Introduction to survey methodology
        • Probability sampling methods
        • Non-probability sampling methods
        • Asking questions
        • Qualitative interviewing
        • Self-completion questionnaires
        • Focus groups
        • Mass and social media research
        • Data collection in mass media research
        • Content analysis and coding with Google Docs
        • Effective presentation techniques
        • Concepts and indicators
        • Presentations 1
        • Presentations 2
        • Presentations 3
        • Presentations 4
        • Presentations 5
      • Immigration
        • Why do people migrate?
        • Who does migrate?
        • Introduction to assimilation theories
        • New and segmented assimilation theory
        • Group conflict
        • Group contact
        • Children of immigrants
        • Social identity of immigrants
        • Migrant networks
        • Intergenerational relationships
        • Grandparental involvement
        • Return migration
        • The sociology of border
        • Immigration and crime
        • Marriage migration and religiosity
        • The construction of ethnicity
      • Sociological thinking
        • The sociological eye
        • Foundations of social theory
        • Scientific sociology: social facts
        • Social structure
        • What is critical thinking?
        • Claims and evidence
        • Everyday arguments
        • Analyzing arguments
        • Network-based factors influencing critical thinking
        • Common errors of perspective in sociological thinking
        • Misinformation and disinformation
        • Propaganda
        • Conspiracy theories and sociology
        • Cognitive influences on critical thinking
        • Ethical reasoning
        • Deviance I: The role of deviance
        • Deviance II: Explaining deviance
        • Social class and inequality
        • Sociology of poverty
        • Sociological perspectives on substance abuse
    • R lab
      • Lab lectures
        • Introduction RStudio
        • Introduction to scripting
        • Descriptive statistics
        • Recoding
        • Computing
        • Chi-square
        • Sampling
        • T-test
        • Visualization
        • Correlation
        • Linear regression basics
        • Dummy variables
        • Logistic regression
        • Modeling exercises
        • Regression assumptions and diagnostics
      • Lab resources
        • How to create RStudio Cloud account and installing all the packages
        • How to open and use R script files in RStudio Cloud
        • Flashcards
        • All R script files
        • Variables in GSS
        • Code templates
        • Interpretation templates
        • How to use model codes
        • Data terminologies
        • Is my p-value less than 0.05?
        • Codebooks
        • How to use RStudio on a computer without using a browser
    • SPSS lab
      • SPSS lab resources
        • All syntax and data files
        • GSS codebook
        • Code templates
        • How to use VPN (for Windows and macOS) and use SPSS
        • How to download PSPP
      • SPSS lab lectures
        • Introduction to SPSS
        • Entering data
        • Recoding and computing I
        • Recoding and computing II
        • Probability sampling
        • Correlation
        • Chi-square
        • T-Test
        • Simple linear regression
        • Multiple linear regression
        • Multiple linear regression exercises
        • Logistic regression
        • Multiple linear and logistic regression exercises
    • NVIVO lab
      • NVIVO lab files
        • All NVIVO cheat files
        • NVIVO data
      • NVIVO lab lectures
        • Introduction to NVIVO
        • Coding basics I
        • Getting familiar with data
        • Getting familiar with own data
        • Coding basics II: initial, axial and focused coding
        • Cases, attributes, values, and visualization
        • Relationships
        • Framework matrices
        • Mind maps, concept maps, project maps
        • NVIVO file for final paper
    • Welcoming pages
      • Welcome to SBS321
      • Welcome to SOC399
      • Welcome to SOC120
Powered by GitBook
On this page
  • Using RStudio on a university lab computer
  • Downloading R and RStudio to a personal computer
  • Mac users
  • Windows Users
  1. All lectures and labs
  2. R lab
  3. Lab resources

How to use RStudio on a computer without using a browser

Last updated 9 months ago

Using RStudio on a university lab computer

Every time you log in to a lab computer, you have to run "install and load packages" codes.

Because when you log out, lab computers revert to their factory settings and deletes the installed packages.

  1. First, download the R Script file that you want to use. .

  2. Type "RStudio" on the search bar of the computer. Open RStudio.

  3. On RStudio, Click File ➜ Open File.

  4. Find the Script file that you just downloaded, and click Open.

  5. DO NOT DOUBLE CLICK R SCRIPT FILES. It may open R, instead of RStudio.

Downloading R and RStudio to a personal computer

You can download R and RStudio to your personal computer. "Install and load packages" codes will install the packages once, but every time you open RStudio on your personal computer, you should run "Install and load packages" again.

Mac users

Mac Users (macOS 12+) and Apple silicon (M1-3) Macs:

Mac Users (macOS 12+) and older Intel Macs:

Mac Users (macOS El Capitan and older)

macOS may want you to allow it to download. Open System Preferences, navigate to Security & Privacy, and then General. See the photo below and hit allow (you may need to click the lock at the bottom to unlock)

Video guidance (macOS)

Windows Users

Windows users may need to change some of their settings.

Select Start > Settings > Apps > Apps & features. Under Installing apps, select "Allow apps from anywhere"

Video guidance (Windows)

1. (4.4.1)

2. (2024.04.2+764)

1. (4.4.1)

2. (2024.04.2+764)

(3.6.3)

(1.4.1717)

1. (4.4.1)

2. (2024.04.2-764)

Check your macOS version
Download R
Download RStudio
Download R
Download RStudio
1. Download R
2. Download RStudio
Download R
Download RStudio
All R Script files here