Ubuntu10.10 simple installation and configuration of the R Environment

Source: Internet
Author: User
Tags cairo
Add: debhttp: // contents "MichaelRutter & lt; marutter@gmail.co to/etc/apt/sources. list

Add the following to/etc/apt/sources. list:

Deb http://ftp.ctex.org/mirrors/CRAN/bin/linux/Ubuntu maverick/

Secure apt

The Ubuntu archives on CRAN are signed with the key of "Michael Rutter "With key ID E084DAB9. You can fetch this key

Gpg -- keyserver keyserver.ubuntu.com -- recv-key E084DAB9

And then feed it to apt-key

Gpg-a -- export E084DAB9 | sudo apt-key add-

Install the complete R system.

Sudo apt-get update
Sudo apt-get install r-base

Manage and maintain the R package

The R packages part of the Ubuntu r-base and r-recommended packages are installed into the directory/usr/lib/R/library.
The other r-cran-* packages shipped with Ubuntu are installed into the directory/usr/lib/R/site-library.
These can be updated using apt-get

Sudo apt-get update
Sudo apt-get upgrade

Management is divided into three parts:
1. Update the R itself and some libraries with apt-get.
2. update. packages () updates are available in/usr/lib/R/library by default under the Administrator permission.
3. By default, the user installation package exists in update. packages () Updates under the/usr/lib/R/site-library permission.

If you use a non-administrator user to install the package, the package will be installed in another new folder because you do not have the write permission for the preceding directory.

If you use the non-Administrator permission to install the package, it will be installed in another new folder. because you do not have the write permission for the preceding directory. the Administrator permission is installed in/usr/local/lib/R/site-library by default. also when updating.

Sudo gedit/etc/R/Rprofile. site # modify the default CRAN Image

Manually install packages dependent on special libraries

The value of exit zookeeper when the installation package 'Cairo 'is not 0
When the package 'rgl 'is installed, the value of exit zookeeper is not 0.
When the 'xml' package is installed, the value of exit logging is not 0:
When the 'rcurl' package is installed, the value of exit strongswan is not 0.
When the package 'cairodevic' is installed, the value of exit strongswan is not 0.
When the package 'fftw 'is installed, the value of exit zookeeper is not 0.
When the package 'rcdd' is installed, the value of exiting zookeeper is not 0.
When the package 'rgdal' is installed, the value of exit zookeeper is not 0.
Caused by dependency on rgl:
Installation of package 'K' had non-zero exit status
Installation of package 'feature 'had non-zero exit status
Installation of package 'flowcore' had non-zero exit status
Installation of package 'flowviz' had non-zero exit status

Install Cairo:

Sudo apt-get install libcairo2-dev libxt-dev

Then install. packages ("Cairo ").

Install cairoDevice:

Sudo apt-get install r-cran-cairoDevice

Install the rgl package:

Sudo apt-get install r-cran-rgl

Install the fftw package:

Sudo apt-get install libfftw3-dev

Then install. packages ("fftw ").

Install the rcdd package:

Sudo apt-get install libgmp3-dev

Then install. packages ("rcdd ").

Install the rgdal package:

Sudo apt-get install libgdal-dev libproj-dev

Then install. packages ("rgdal ").

Install the XML package:

Sudo apt-get install libxml +++ 2.6-dev

Then install. packages ("XML ").

After installing the above code, you can install RCurl. It may be caused by libxml dependency.

Install the rimages package:

Sudo apt-get install fftw-dev fftw2

Then install. packages ("rimage ").

Install RKWard daily
Sudo add-apt-repository ppa: rkward-devel/rkward-dailys

Then

Sudo apt-get update
Sudo apt-get install rkward
Sudo apt-get dist-upgrade

You can install RKWard daily.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.