Help us understand the problem. What is going on with this article?

R3.1.1 で xtsExtra をインストール

More than 5 years have passed since last update.

xtsExtra が pakege.install できなかった

先にオチをいうと、レポジトリから直接ダウンロードできなくて、ファイルを直接インストールしたらできた、って話。もしかしたら、環境要因なのかもしれない(解決しちゃったから詳細に調べる気もなし、どうせ対応される気がする)。使用環境は

version
R 3.1.1
RStudio 0.98
OS OSX 10.9.4

これで、R-Forge: xts - extensible time series: R Development Page にある通りに打ち込む。

install.packages("xtsExtra", repos="http://R-Forge.R-project.org")

↓怒られた。

> install.packages("xtsExtra", repos="http://r-forge.r-project.org/")
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  unable to access index for repository http://r-forge.r-project.org/bin/macosx/mavericks/contrib/3.1

   package 'xtsExtra' is available as a source package but not as a binary

Warning in install.packages :
  package 'xtsExtra' is not available (for R version 3.1.1)

ファイルからインストール

R-Forge: xts - extensible time series: R Development Page のダウンロードより、tar.gz ファイルをダウンロードして、↓でインストール。

install.packages("xtsExtra_0.0-1.tar.gz", repos=NULL, type="source")

↓一応成功らしい。

> install.packages("xtsExtra_0.0-1.tar.gz", repos=NULL, type="source")
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* installing *source* package 'xtsExtra' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* DONE (xtsExtra)

確認してみる

library(xtsExtra)
library(quantmod)
data.ge <- getSymbols("GE", auto.assign=FALSE)
plot(data.ge)

Rplot.png

というわけで、無事 金融データ解析の基礎 (シリーズ Useful R 8): 高柳 慎一, 井口 亮, 水木 栄, 金 明哲: 本 p130 が進められましたとさ。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away