无法安装 Plotly
Unable to Install Plotly
我正在尝试在我闪亮的服务器 (Ubuntu 14.04) 中安装 plotly 库。我正在使用 devtools
安装 plotly
。
devtools::install_github("ropensci/plotly")
我正在观察以下内容:
Downloading GitHub repo ropensci/plotly@master
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
有人可以帮忙解决这个错误吗?
尝试更新您的 ggplot2 包。你的问题是依赖包 viridis 出错。错误消息显示 namespace ggplot2 0.9.3.1 is being loaded, but >= 1.0.1 is required
。 viridis 的 namespace file 表示它需要更新版本的 ggplot。
我正在尝试在我闪亮的服务器 (Ubuntu 14.04) 中安装 plotly 库。我正在使用 devtools
安装 plotly
。
devtools::install_github("ropensci/plotly")
我正在观察以下内容:
Downloading GitHub repo ropensci/plotly@master
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
有人可以帮忙解决这个错误吗?
尝试更新您的 ggplot2 包。你的问题是依赖包 viridis 出错。错误消息显示 namespace ggplot2 0.9.3.1 is being loaded, but >= 1.0.1 is required
。 viridis 的 namespace file 表示它需要更新版本的 ggplot。