【问题标题】:Unable to install package googleVis with R 3.0.1无法使用 R 3.0.1 安装包 googleVis
【发布时间】:2014-12-19 05:20:31
【问题描述】:

我需要安装 googleVis。我正在使用 R 版本 3.0.1。

但是在尝试安装软件包时,我收到以下错误:

> install.packages("googleVis")
Installing package into ‘/home/akash/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘googleVis’ is not available (for R version 3.0.1) 
> 

我也从 Rstudio 收到同样的错误。

R 版本信息:

akash@akash:~$ R

R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

请帮助。

【问题讨论】:

标签: r installation googlevis


【解决方案1】:

正如@akrun 所说,您需要将r 版本更新为3.1.2。好像您在 Ubuntu 上,如果是,那么您可以在终端上运行以下命令来更新您的 r 包。

sudo apt-get update
sudo apt-get install r-base

然后尝试通过在 r 提示符下运行 install.packages("googleVis") 命令来安装 googleVis r 包。

【讨论】:

  • 嗨。谢谢来回回复。在输入命令时,我得到“sudo apt-get install r-base”。版本仍然是 3.0.1。
  • 您在安装r-base 包之前是否运行了sudo apt-get update 命令?
  • 在您的问题上发布apt-cache policy r-base 命令的输出。
  • 我确实运行了更新命令。apt-cache 命令的输出是:coder-base: Installed: 3.0.1-3ubuntu1 Candidate: 3.0.1-3ubuntu1 Version table: ** * 3.0.1-3ubuntu1 0 500 in.archive.ubuntu.com/ubuntu saucy/universe amd64 包 100 /var/lib/dpkg/status code
  • @art 关注此askubuntu.com/a/431410/202806 答案。在第二个命令deb http://cran.rstudio.com/bin/linux/ubuntu precise 中,将precision 替换为您的ubuntu 版本的名称。
猜你喜欢
  • 2014-06-14
  • 1970-01-01
  • 1970-01-01
  • 2012-06-21
  • 1970-01-01
  • 2021-05-08
  • 1970-01-01
相关资源
最近更新 更多