LoginSignup
7
6

More than 5 years have passed since last update.

Rのインストール (Linux Mint, Ubuntu)

Posted at

概要

Linux Mint (Ubuntu系) にRをインストールする。
デフォルトパッケージが古かったのでCRANの最新版をインストールした。

環境

  • Linux Mint 16 Petra
  • R 3.1.0

内容

  • パッケージの取得先を追加 CRANのミラーサイト (http://cran.r-project.org/mirrors.html) から適当なサイトを選んで設定ファイルを作成する。末尾のsaucyのところはOSのバージョンに合わせて記載する。
/etc/apt/sources.list.d/r.list
deb http://cran.ism.ac.jp/bin/linux/ubuntu saucy/
  • パッケージ取得先を更新

apt-get updateしても署名が検証できずエラーになるので公開鍵を取得して再度実行する。

$ sudo apt-get update
・・・
W: GPG エラー: http://cran.ism.ac.jp saucy/ Release: 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY <公開鍵>
$ gpg --keyserver keyserver.ubuntu.com --recv-key <公開鍵>
$ gpg -a --export <公開鍵> | sudo apt-key add -
$ sudo apt-get update
  • 最後にRをインストール
$ sudo aptitude install r-base

参考

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6