Debian Server for R Computing
  • Tutorial: Debian Server for R Computing
  • Before the Installation
  • Install Debian
    • Install Debian Operation System
    • Configure the APT Package Manager
    • Optional: Use LVM for Partition
    • Optional: Install Graphical User Desktop Environment
  • Softwares Installation and Other Configuration
    • R
    • OpenSSH
    • Rstudio Server
    • MariaDB
  • Backup Your Server
    • Rsync
    • Setting Rsync Daemon
    • Create Scheduled Tasks to Sync
  • Other Configuration
    • Port Mapping
    • Nginx and Shiny Server
Powered by GitBook
On this page

Was this helpful?

  1. Softwares Installation and Other Configuration

R

PreviousSoftwares Installation and Other ConfigurationNextOpenSSH

Last updated 5 years ago

Was this helpful?

R

The R language is widely used among statisticians and data miners for developing statistical software and data analysis. Nowadays, R and Python are both part of a typical data science workflow.

See . For downloading latest version of R, adding additional repositories to debian repository list is required.

  • For a backport of latest R to Debian 8 (jessie), simply open /etc/apt/sourece.list.

    $ sudo vim /etc/apt/source.list
  • Then add following lines into /etc/apt/sourece.list.

    deb http://<favourite-cran-mirror>/bin/linux/debian jessie-cran3/
    deb-src http://<favourite-cran-mirror>/bin/linux/debian jessie-cran3/

    NOTE: You need to substitute <favourite-cran-mirror> by one of the mirror URLs listed in the . For example: deb http://cran.csie.ntu.edu.tw/bin/linux/debian jessie-cran3/.

  • Fetch and import Debian backports archives on CRAN (CRAN Debian archive) with key ID 381BA480.

    $ sudo apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480
  • Finally, install R.

    $ sudo apt-get update
    $ sudo apt-get install r-base r-base-dev
  • After the installation, execute this command to check the version of R in your server is up-to-date.

    $ R --version

Useful R packages

We will introduce some useful packages here.

One feature of R is its capabilities to extend through third-party packages. Currently, the package repository features 7749 available packages (2015-01-09). There are also many for R users to browse packages for differenct area of interest.

/: Fast, consistent tools for data manipulating, both in or out of memory. : An extension of data.frame for large data. : A plotting system for R, based on the grammar of graphics. : Spatial statistics focusing on spatial point patterns. : Make updating R (on windows) as easy as running a function. : Enable easy creation of dynamic documents, presentations, and reports from R. : A database interface for communication between R and relational database management systems.

CRAN
Task Views
plyr
dplyr
data.table
ggplot2
spatstat
installr
rmarkdown
DBI
Why you should learn R first for data science
mirror list