designwithfocus

Programming languages

What Is R Programming? Statistics First, Then a Script

By Design With Focus Team 6 min read
A short statistics script beside a simple plotted chart

Short answer

R is a language and environment for statistical computing and graphics, close to the S language from Bell Laboratories. The R Project homepage lists version 4.6.2, nicknamed Diversified Portfolio, released on 29 October 2026. CRAN's banner describes R as GNU S and describes CRAN as a network of servers that store the same current code and docs. The introduction teaches a numeric vector before it teaches a mean.

Last verified against the sources listed below.

Key takeaways

  • The project calls R a GNU project and a different implementation of S.
  • Version 4.6.2 was released on 29 October 2026. Version 4.5.3 was released on 11 March 2026.
  • The about page says about eight packages ship with R, and more live on CRAN.
  • A vector such as c(10.4, 5.6, 3.1, 6.4, 21.7) is the manual's first data example.
  • mean(x) is the sample mean, defined as sum(x) divided by length(x).
  • The R Journal, from the R Foundation, runs articles up to 20 pages and began in 2009.

What is R programming? It is writing in R, a free language and environment for statistical computing and graphics, and the project homepage lists the current release as version 4.6.2.

The about page says R is a GNU project similar to S, from Bell Laboratories, and that much code written for S runs unaltered. The homepage says this release, nicknamed Diversified Portfolio, was published on 29 October 2026. An earlier line on the same page dates version 4.5.3 to 11 March 2026.

What is the R programming language?

The R programming language is the language the project wraps around statistical work, not a general-purpose language that later grew a stats library.

What is R? says many people think of R as a statistics system. The writers prefer to call it an environment in which statistical techniques are implemented. You extend it by defining functions, and by installing packages. The term environment is there to mark a planned system, rather than a pile of one-off tools.

It compiles and runs on a wide variety of UNIX platforms and similar systems, including FreeBSD and Linux, plus Windows and MacOS. Source is available as Free Software under the GNU General Public License. The about page says about eight packages ship with the distribution. Many more are on CRAN.

Python is a different language with a different home page. This page stays with what the R Project and CRAN print.

What is the definition in the manual?

The definition used here is the about page’s sentence: a language and environment for statistical computing and graphics.

CRAN’s banner compresses that to GNU S, freely available, with linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, and more. It tells you to read the project homepage for the rest. The banner’s latest source tarball matches the news line: R-4.6.2, 29 October 2026, Diversified Portfolio.

S is the parent. John Chambers and colleagues built it at Bell Laboratories, formerly AT&T, later Lucent. R is a different implementation, not a rename. The about page says there are important differences, and that much S code still runs.

A programming paradigm is a way of organizing code. The about page does not pick a single paradigm label. It does say the language has conditionals, loops, recursive functions, and input and output, and that users add functions. C, C++, and Fortran can be called for heavy computation.

Which features does the project list?

The project lists statistics, graphics, data handling, and a language that can grow by packages.

Piece the about page names What it covers
Statistical techniques Linear and nonlinear modelling, classical tests, time series, classification, clustering
Graphics Publication-quality plots, including math symbols, with user control of defaults
Data Handling and storage, plus operators on arrays and matrices
Language Conditionals, loops, recursive functions, input and output
Packages About eight shipped with R, and more through CRAN
License and platforms GNU GPL, source form, UNIX-like systems, Windows, and MacOS

Plots are called out as a strength. The page says great care went into graphic defaults, and the user still has full control. It does not publish a chart gallery or a file-size limit for those plots.

The R Journal is the R Foundation’s peer-reviewed, open-access journal. It began in 2009, replacing R News. Articles run up to 20 pages and must be primarily about R packages and R programming. The overview says the journal currently receives around 150 submissions a year.

What does a short vector of code do?

It builds an ordered list of numbers, which the introduction calls the simplest data structure.

An Introduction to R, on CRAN, starts with this assignment:

x <- c(10.4, 5.6, 3.1, 6.4, 21.7)

c() concatenates its arguments into one vector. The arrow <- points at x. The manual says = works as an alternative in most contexts, and that a number alone is a vector of length one. A later line, y <- c(x, 0, x), makes 11 entries: two copies of x with a zero between them.

mean(x) calculates the sample mean, which that chapter writes as sum(x)/length(x). var(x) is the sample variance, sum((x-mean(x))^2)/(length(x)-1). The chapter does not print the mean of those five numbers. This guide will not invent it.

The help page for mean on the ETH copy of the R manual shows the default method as mean(x, trim = 0, na.rm = FALSE, ...). trim is the fraction removed from each end before the mean, from 0 to 0.5, and the default 0 means no trimming. na.rm decides whether NA values are stripped.

Its example is x <- c(0:10, 50), then mean(x).

How does CRAN fit?

CRAN is the public network that stores the same current R code and documentation in more than one place.

The CRAN banner says to use the mirror nearest you, to cut network load. It offers precompiled binaries for Linux, macOS, and Windows, and it warns that the source tarball has to be compiled. Between releases, a prerelease directory holds alpha, beta, and rc snapshots, plus patched and development builds.

Submitting a package is a separate act from using R. The banner points at the CRAN Repository Policy and a web form. It says precompiled binaries are generally not accepted, for security reasons, and the binaries on the banner are built by selected maintainers.

That policy is about package authors. A person calculating a mean does not need it.

If a plot leaves R as an image file, the file is ordinary web bytes after that. An image compressor can shrink the export. It does not run the statistics.

Frequently asked questions

What is the R programming language?

The R programming language is the language inside that environment. The about page says it includes conditionals, loops, user-defined recursive functions, and input and output. Much of the system is written in the R dialect of S, so a reader can follow the algorithms. For heavy work, C, C++, and Fortran can be linked and called at run time. Advanced users can write C that manipulates R objects directly. The project would rather you see R as an environment where statistical techniques are implemented.

What is the definition of R on the project site?

The about page's definition is one sentence long: R is a language and environment for statistical computing and graphics. It is a GNU project, similar to S, which John Chambers and colleagues developed at Bell Laboratories. R can be treated as a different implementation of S. There are important differences, but much S code runs unaltered. CRAN's banner shortens the same idea to GNU S, a freely available language and environment, and points you back to the project homepage for the rest.

What features does the about page list?

The about page lists linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, and clustering, plus graphics. It says publication-quality plots are a strength, including mathematical symbols, and that the user keeps control of the graphic defaults. The environment section adds data handling, operators for arrays and matrices, intermediate tools for analysis, and on-screen or hardcopy display. About eight packages ship with the distribution. Many more are on the CRAN sites.

What does a one-line R vector look like?

An Introduction to R sets up a numeric vector of five numbers with x <- c(10.4, 5.6, 3.1, 6.4, 21.7). The function c() concatenates its arguments. A bare number is a vector of length one. The assignment arrow points at the name that receives the value, and = works in most contexts. mean(x) is the sample mean, the same as sum(x)/length(x). The manual does not print the numeric result of that particular call, so this guide does not invent one.

Where do contributed packages live?

They live on CRAN, the Comprehensive R Archive Network. The banner says CRAN is a network of ftp and web servers that store identical, up-to-date code and documentation, and it asks you to use a nearby mirror. The same banner's latest release line matches the homepage: 29 October 2026, Diversified Portfolio, R 4.6.2. The R Journal, published by the R Foundation since 2009, reviews articles about packages and programming, up to 20 pages, and says it currently receives around 150 submissions a year.

Sources