R has its own top level project in openSUSE's build service
R is included in the latest releases of openSUSE since 11.3, so it may be installed without adding any repositories directly from yast. Obviously you only get the version of R that was current, when a openSUSE release got frozen. I.e. 13.2 contains R-3.1.1 but we already have R-3.2.0 out by now. Read on to find out how to stay current with R!
devel:languages:R you find a few subprojects:
- released (built on release date, replaces the old R-base) This contains R itself and a lot of CRAN packages, emacs-ess, rkward, rstudio, littler. It is intended to be a one-stop-for-all repository.
- R-patched (daily, recommended) and
- R-devel (daily)
for at least all actively maintained releases of openSUSE available. For the time being these are 13.1 and 13.2. For your convenience older releases are supported as long as no work is required to keep R compiling for those unmaintained releases of openSUSE.
The requirement of texinfo > 5.1 in R-3.2.0 leads to a shorter list of supported releases. From now on only 12.2 and newer releases are supported.
Furthermore the adventurous can download packages for Factory and Tumbleweed.
At the moment only SLE_12 builds after some work. SLE_11_SP2 and SP3 are actively worled on, but the dependencies are hard to fulfill.
All these packages provide a resource 'R-base' for installation.
In subproject R-released you'll find the latest released version of R. This is the version, which goes into the next openSUSE release. This project gets updates if and when R itself is officially released.
R-patched is updated daily with the latest patches from upstream. Same version number as R-base, but patches.
R-devel is updated daily and contains today's devel version of R.
Naturally R-patched now is the recommended version to run. If you compile packages for yourself you must install R-patched-devel, too. For discontinued releases, at the moment 12.2-12.3, R-base gets build as long as it "just works" with the current spec file. No effort is put in keeping the latest R-base build on these ancient releases.
The generic method to install R on OpenSUSE Linux is using the 1-click install facility the OpenSUSE Build Service (OBS) provides in their search interface. As r-base-devel requires r-base it is easiest to install r-base-devel. Most will need it anyway.
Nevertheless some seemed to have trouble using that interface, what inspired creating a page collecting direct links to the packages installation sources.
Installing R with 1-click-install
The links in the table below invoke yast2 directly to provide access to OpenSUSE's 1-click-install. Architecture and dependencies are handled automatically. You must be root to do this, resp. you will be asked to give the superuser password during installation. If available you'll receive current R-patched, otherwise R-base.
The devel package is needed, if you want to install add-on packages. You'll probably need to install a compiler, too. Some packages will need additional dependencies. See install instructions for the package, if an installation fails.
|SLE 11 SP2||Install||Install|
|SLE 11 SP3||Install||Install|
The version provided at the moment is R-3.2.0 (patched). The installation includes all recommended packages.
Installing using the command line
As superuser do
VERSION=$(grep VERSION /etc/SuSE-release | sed -e 's/VERSION = //') zypper addrepo -f \ http://download.opensuse.org/repositories/devel\:languages\:R\:patched/openSUSE_$VERSION/ \ R-patched
which automatically determines your installed version of openSUSE. After that
zypper install R-patched R-patched-devel
will install R and all dependencies. This only works for supported versions of openSUSE.
Staying uptodate with zypper
After the first installation the appropriate repositories have been added to your installation. Superuser may use
zypper update R-patched
to update to the latest version of R-patched from the command line.
To install R-devel just use the zypper command line with "patched" replaced by "devel". Using R-devel implies you know what you are doing.
Download for later installation
If for whatever reason you prefer downloading and manual installation of R or you need a src.rpm and the spec file, using of the search interface is recommended.
These packages are maintained by Detlef Steuer (email@example.com). All feeback very much appreciated!