2016-06-17 7 views
3

私は輝くサーバー(Ubuntu 14.04)にplotly libraryをインストールしようとしています。 plotlyをインストールするのにdevtoolsを使用しています。Plotlyをインストールすることができません

devtools::install_github("ropensci/plotly") 

私は次のことを観察しています:

Downloading GitHub repo ropensci/[email protected] 
from URL https://api.github.com/repos/ropensci/plotly/zipball/master 
Installing plotly 
Skipping 3 unavailable packages: ggplot2, plyr, tidyr 
Installing 1 package: viridis 
Installing package into â/home/shiny/R/x86_64-pc-linux-gnu-library/3.0â 
(as âlibâ is unspecified) 
trying URL 'http://cran.rstudio.com/src/contrib/viridis_0.3.4.tar.gz' 
Content type 'application/x-gzip' length 1764427 bytes (1.7 Mb) 

opened URL 

downloaded 1.7 Mb 

* installing *source* package âviridisâ ... 
** package âviridisâ successfully unpacked and MD5 sums checked 
** R 
** data 
*** moving datasets to lazyload DB 
** inst 
** preparing package for lazy loading 
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
    namespace âggplot2â 0.9.3.1 is being loaded, but >= 1.0.1 is required 
ERROR: lazy loading failed for package âviridisâ 
* removing â/home/shiny/R/x86_64-pc-linux-gnu-library/3.0/viridisâ 

The downloaded source packages are in 
     â/tmp/RtmpNULrLF/downloaded_packagesâ 
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet \ 
    CMD INSTALL '/tmp/RtmpNULrLF/devtools59af4cc18d9c/ropensci-plotly-d2e5adf' \ 
    --library='/home/shiny/R/x86_64-pc-linux-gnu-library/3.0' --install-tests 


ERROR: dependencies âviridisâ, âtidyrâ are not available for package âplotlyâ 
* removing â/home/shiny/R/x86_64-pc-linux-gnu-library/3.0/plotlyâ 
Error: Command failed (1) 
In addition: Warning message: 
In utils::install.packages(pkgs, repos = repos, type = type, dependencies = dependencies, : 
    installation of package âviridisâ had non-zero exit status 

私もinstall.packages("plotly")をしようとしていますし、私はエラーを打っています。

Warning messages: 
1: In install.packages("plotly") : 
    installation of package âviridisâ had non-zero exit status 
2: In install.packages("plotly") : 
    installation of package âplotlyâ had non-zero exit status 

エラーが発生しましたか?

+0

'sessionInfo'の結果の一部を含めることができます。 – steveb

+0

Rバージョン3.0.2(2013年9月25日) プラットフォーム:x86_64の-PC-LinuxベースのGNU(64ビット) ロケール: [1] LC_CTYPE = en_IN LC_NUMERIC = C LC_TIME = en_IN [4] LC_COLLATE = en_IN LC_MONETARY = en_IN LC_MESSAGES = en_IN [7] LC_PAPER = en_IN LC_NAME = C LC_ADDRESS = C [10] LC_TELEPHONE = C LC_MEASUREMENT = en_IN LC_IDENTIFICATION = C 取り付けられたベースパッケージ: [1]グラフィックgrDevices utilsのデータセットメソッドを統計base 名前空間からロードされました(添付されていません): [1] tools_3.0.2 –

答えて

0

ggplot2パッケージを更新してみてください。問題は、依存パッケージviridisのエラーです。エラーメッセージはnamespace ggplot2 0.9.3.1 is being loaded, but >= 1.0.1 is requiredと表示されます。 viridisのnamespace fileは、最新バージョンのggplotが必要だと言います。

+0

CRANからggplotをインストールしようとしましたが、エラーパッケージâggplot2âで利用できませんでした(Rバージョン3.0.2用)、sudo apt-get install r-cran-ggplot2をインストールしました。これが古いバージョンのggplot2の原因ですか? ggplot2を新しいバージョンに更新する方法を教えてください –

+0

あなたのRのバージョンを更新する必要があるようです。[the docs](https://github.com/hadley/ggplot2/blob/master/DESCRIPTION)をご覧ください。 )、ggplot2の最新バージョン 'Depends R(> = 3.1)'のため、少し古くなっています。もしあなたがUbuntu 14.04を使っているなら、 'sudo apt-get update && apt-get upgrade'を実行して問題を解決できるはずです。 – keberwein

+0

私はすべての可能性を試しました。私もアンインストールして、Rをもう一度インストールしました。しかし、私は再びR 3.0.2を手に入れています。とにかく上位バージョンに行くのですか? –

関連する問題