.. _spkg_r:

r: A free software environment for statistical computing and graphics
=====================================================================

Description
-----------

R is a language and environment for statistical computing and graphics.
It is a GNU project which is similar to the S language and environment
which was developed at Bell Laboratories (formerly AT&T, now Lucent
Technologies) by John Chambers and colleagues. R can be considered as a
different implementation of S. There are some important differences, but
much code written for S runs unaltered under R.

(taken from http://www.r-project.org/)

License
-------

-  GPL v2 or GPL v3


Upstream Contact
----------------

-  https://www.r-project.org
-  R mailing list, #R in IRC

Dependencies
------------

-  GNU patch
-  iconv
-  Readline
-  BLAS/LAPACK
-  xz
-  pcre
-  curl
-  https-capable SSL

Type
----

standard


Dependencies
------------

- $(BLAS)
- :ref:`spkg_gfortran`
- :ref:`spkg_iconv`
- :ref:`spkg_readline`
- :ref:`spkg_bzip2`
- :ref:`spkg_liblzma`
- :ref:`spkg_pcre`
- :ref:`spkg_curl`
- :ref:`spkg_pkgconf`

Version Information
-------------------

package-version.txt::

    3.6.3


Equivalent System Packages
--------------------------

arch:

.. CODE-BLOCK:: bash

    $ sudo pacman -S  r


conda:

.. CODE-BLOCK:: bash

    $ conda install  r r-essentials


cygwin:

.. CODE-BLOCK:: bash

    $ apt-cyg install R libtirpc-devel


Debian/Ubuntu:

.. CODE-BLOCK:: bash

    $ sudo apt-get install  r-base-dev r-cran-lattice


Fedora/Redhat/CentOS:

.. CODE-BLOCK:: bash

    $ sudo yum install  R R-devel


freebsd:

.. CODE-BLOCK:: bash

    $ sudo pkg install math/R


gentoo:

.. CODE-BLOCK:: bash

    $ sudo emerge dev-lang/R


homebrew:

.. CODE-BLOCK:: bash

    $ brew install r


macports:
install the following packages: R

nix:

.. CODE-BLOCK:: bash

    $ nix-env --install R


opensuse:

.. CODE-BLOCK:: bash

    $ sudo zypper install R-base


void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  R


See https://repology.org/project/r/versions


If the system package is installed, ./configure will check whether it can be used.

