{
  "name": "RStudio Code Execution Modes and Performance Comparison",
  "description": "Comparative specifications of R code execution mechanisms in RStudio Desktop, detailing invocation shortcuts, memory context, console echo behavior, and evaluation blocking across scientific workflows. Compiled from Posit RStudio documentation and CRAN manuals.",
  "page": "https://casrai.org/guides/rstudio-code",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-23T09:25:00Z",
  "temporalCoverage": "2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Execution Mode",
      "unit": "",
      "description": "Method of running code within RStudio IDE"
    },
    {
      "name": "Default Shortcut (Win/Linux)",
      "unit": "",
      "description": "Primary keyboard shortcut on Windows and Linux"
    },
    {
      "name": "Default Shortcut (macOS)",
      "unit": "",
      "description": "Primary keyboard shortcut on macOS"
    },
    {
      "name": "Console Output Echo",
      "unit": "",
      "description": "Whether raw input syntax is printed to the interactive console alongside results"
    },
    {
      "name": "Execution Process",
      "unit": "",
      "description": "Underlying process handling execution"
    },
    {
      "name": "Interactive Blocking",
      "unit": "",
      "description": "Whether interactive console input is blocked during execution"
    }
  ],
  "rows": [
    {
      "Execution Mode": "Single Line or Statement",
      "Default Shortcut (Win/Linux)": "Ctrl+Enter",
      "Default Shortcut (macOS)": "Cmd+Enter",
      "Console Output Echo": "Yes",
      "Execution Process": "Foreground R Session",
      "Interactive Blocking": "Yes"
    },
    {
      "Execution Mode": "Selected Code Block",
      "Default Shortcut (Win/Linux)": "Ctrl+Enter",
      "Default Shortcut (macOS)": "Cmd+Enter",
      "Console Output Echo": "Yes",
      "Execution Process": "Foreground R Session",
      "Interactive Blocking": "Yes"
    },
    {
      "Execution Mode": "Entire Script (Source)",
      "Default Shortcut (Win/Linux)": "Ctrl+Shift+Enter",
      "Default Shortcut (macOS)": "Cmd+Shift+Enter",
      "Console Output Echo": "No (Results Only)",
      "Execution Process": "Foreground R Session",
      "Interactive Blocking": "Yes"
    },
    {
      "Execution Mode": "Entire Script with Echo",
      "Default Shortcut (Win/Linux)": "Ctrl+Shift+Enter (Toggled)",
      "Default Shortcut (macOS)": "Cmd+Shift+Enter (Toggled)",
      "Console Output Echo": "Yes",
      "Execution Process": "Foreground R Session",
      "Interactive Blocking": "Yes"
    },
    {
      "Execution Mode": "Local Background Job",
      "Default Shortcut (Win/Linux)": "Jobs Pane Launch",
      "Default Shortcut (macOS)": "Jobs Pane Launch",
      "Console Output Echo": "Background Job Pane",
      "Execution Process": "Dedicated Child R Session",
      "Interactive Blocking": "No"
    },
    {
      "Execution Mode": "R Markdown / Quarto Chunk",
      "Default Shortcut (Win/Linux)": "Ctrl+Alt+C",
      "Default Shortcut (macOS)": "Cmd+Option+C",
      "Console Output Echo": "Inline / Output Chunk",
      "Execution Process": "Foreground R Session",
      "Interactive Blocking": "Yes"
    }
  ],
  "sources": [
    {
      "title": "Posit Software: Executing code – RStudio User Guide",
      "url": "https://docs.posit.co/ide/user/ide/guide/code/execution.html",
      "accessed": "2026-11-19"
    },
    {
      "title": "Posit Software: R Console – RStudio User Guide",
      "url": "https://docs.posit.co/ide/user/ide/guide/code/console.html",
      "accessed": "2026-11-19"
    },
    {
      "title": "The R Foundation: An Introduction to R",
      "url": "https://cran.r-project.org/doc/manuals/r-release/R-intro.html",
      "accessed": "2026-11-19"
    }
  ]
}