Using RStudio

Using RStudio on SeaWulf

Overview

RStudio Server provides a web-based interface for running R scripts and projects. On SeaWulf, you can launch RStudio through the Open OnDemand (OOD) portal, enabling you to work interactively from a browser without SSH or local R installations.

Getting Started

  1. Open the SeaWulf Open OnDemand portal: https://sn-ood.seawulf.stonybrook.edu/
  2. Log in using your NetID and DUO authentication.
  3. From the dashboard, select Interactive Apps and choose RStudio Server.
  4. Select the compute queue and number of cores required for your analysis.
  5. Click Launch. Once the session starts, RStudio will open in your browser.

Best Practices

  • Save your work frequently to your home or project directory to prevent data loss.
  • Use Conda or module-managed R environments to install packages reproducibly.
  • Close the RStudio session when finished to free compute resources for other users.
  • Select an appropriate node type based on your workload: 28-core Haswell, 40-core Skylake, 96-core Milan, or 96-core Xeon Max HBM.
  • For large analyses, monitor memory and CPU usage to avoid exceeding allocations.

Accessing Files

RStudio allows direct access to your home, scratch, and project directories. Use relative paths or mount directories to ensure your scripts can read and write data efficiently.

Tip: Combine RStudio sessions with version-controlled project spaces for reproducible workflows and collaborative research.