R

From Gentoo Wiki
Jump to: navigation, search

R is a programming language primarily for statistics and numerical analysis.

Installation

USE flags

USE flags for dev-lang/R Language and environment for statistical computing and graphics

X Add support for X11 global
cairo Enable support for the cairo graphics library global
doc Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally global
icu Enable ICU (Internationalization Components for Unicode) support, using dev-libs/icu global
java Add support for Java global
jpeg Add JPEG image support global
lapack Add support for the virtual/lapack numerical library global
minimal Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features) global
nls Add Native Language Support (using gettext - GNU locale utilities) global
openmp Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with USE="openmp" global
perl Add optional support/bindings for the Perl language global
png Add support for libpng (PNG images) global
prefix Defines if a Gentoo Prefix offset installation is used global
profile Add support for software performance analysis (will likely vary from ebuild to ebuild) global
readline Enable support for libreadline, a GNU line-editing library that almost everyone wants global
static-libs Build static versions of dynamic libraries as well global
tiff Add support for the TIFF image format global
tk Add support for Tk GUI toolkit global

Emerge

root #emerge --ask dev-lang/R

Integration with other programs

ESS, or Emacs Speaks Statistics, is an Emacs mode that can edit R files and start R from within Emacs. To install:

root #emerge --ask app-emacs/ess

In Vim, the vim-r plugin integrates vim and R through tmux and provides support for editing R and send it to an R process. To install:

root #emerge --ask app-vim/vim-r