【问题标题】:I am unable to download the reshape2 package in R [closed]我无法在 R 中下载 reshape2 包 [关闭]
【发布时间】:2016-04-01 02:33:33
【问题描述】:

我在尝试安装 R 包时收到此响应:

>installed.packages("reshape2")
     Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances
     License License_is_FOSS License_restricts_use OS_type Archs MD5sum
     NeedsCompilation Built

R 版本 3.2.2 (2015-08-14) 平台:x86_64-w64-mingw32/x64(64位) 运行于:Windows 8 x64(内部版本 9200)

【问题讨论】:

  • 是错字还是你试过install.packages('reshape2')? (未安装.packages)

标签: r package installation reshape2


【解决方案1】:

你调用的函数不是用来下载包的

installed.packages 返回有关 R 可用包的信息。第一个参数定义函数将查找包的位置。除非您当前的工作目录中有reshape2 目录恰好包含一些有效的包,否则该函数将不返回任何内容。

如果您想下载并安装包,请使用install.packages

install.packages("reshape2")

如果您想下载包(但不安装),请使用download.packages

【讨论】:

  • 嗯,R 中的自动完成功能似乎吸引了像我这样的初学者 :) 直到看到这篇文章,我才真正注意到(安装与安装)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-11-23
  • 2011-12-07
  • 1970-01-01
  • 2016-02-06
  • 2015-12-22
  • 2012-05-30
  • 1970-01-01
相关资源
最近更新 更多