R is a language and environment for statistical computing and graphics, and it is a GNU project. Ross Ihaka and Robert Gentleman started it at the University of Auckland in 1993 as a free implementation of the S language developed at Bell Laboratories, and since 1997 it has been maintained by the R Core Team under the R Foundation. The interpreter, the graphics devices and the package manager all ship together, so the language and the statistics arrive as one install. R is free software under the GNU General Public License (version 2 or later), runs on Linux, Windows and macOS, and the current release is R 4.6.2 “Diversified Portfolio”, published on 29 October 2026.
lm(), glm()), classical tests (t.test(), chisq.test(), cor.test()), analysis of variance, time-series functions and a model-formula syntax are part of base R, not a library you add.d[rows, cols] and grouping with aggregate() work without a loop; the tidyverse’s dplyr and tidyr add a reworked grammar on top.ggplot2 draw plots with mathematical notation, and the device layer writes PDF, SVG, PNG and PostScript without leaving the session.install.packages("name").renv locks package versions per project so an analysis still runs a year later.Rscript file.R for cron jobs and pipelines, and R CMD check for packaging your own code.plumber exposes R functions as REST endpoints.Rcpp calls C and C++ at native speed, DBI and its drivers talk to PostgreSQL, MySQL and SQLite, reticulate embeds Python, and knitr output lands straight in LaTeX.R is what a language looks like when statistics came first. A regression that needs several libraries and a glue layer elsewhere is one function call here, and it returns an object you can print, plot, summarise and test rather than a screen of numbers to interpret by hand. The ecosystem is the other half of the argument: because the people who publish new statistical methods usually publish R code with them, CRAN tends to have the implementation before any other language does, and the packages are peer-reviewed for correctness rather than only for API design. It plays well with an existing stack instead of replacing it — C++ hot loops through Rcpp, Python libraries through reticulate, SQL databases through DBI, LaTeX through knitr — and it is GPL software with identical behaviour on Linux, Windows and macOS. The cost is a few rough edges: base R’s syntax is idiosyncratic, memory-hungry operations are slower than a tuned C or Julia implementation, and a serious project usually needs the tidyverse on day one to stay readable.
Install the interpreter from CRAN or from your distribution — sudo apt install r-base on Debian and Ubuntu, the signed .pkg installer on macOS, the Windows installer from CRAN — then check it with R --version. Start the console with R, run a file with Rscript script.R, and quit with q(). Packages install from a CRAN mirror with install.packages("ggplot2"); on Linux, distribution packages for the heavy dependencies (libcurl, libxml2, libssl) save a long compile. RStudio Desktop and the VS Code R extension give the interpreter an editor, but neither is required, and R itself is a separate install from both. The source lives in the R Subversion repository with a read-only GitHub mirror, and the R FAQ documents the licence terms and the supported platforms.