R¶
Statistical computing and graphics language
Overview¶
R is a language and environment for statistical computing and graphics. It's widely used by statisticians, data scientists, and researchers for data analysis and visualization.
Language Aliases¶
run r "print('Hello')"
run rscript "print('Hello')"
run cran "print('Hello')"
# Output: [1] "Hello" (x3)
Multi-line Code: Use Heredoc
For multi-line code, use heredoc (<< 'EOF') to avoid shell quoting and escaping issues.
REPL Behavior¶
R's REPL is STATEFUL - variables and functions persist across commands.