I am unable to download the reshape2 package in R [closed]

此生再无相见时 提交于 2019-12-05 15:45:55

问题


I am getting this response when trying to install the R package:

>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 version 3.2.2 (2015-08-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 8 x64 (build 9200)


回答1:


The function you have called is not used to download packages.

installed.packages returns information about packages available to R. The first argument defines places where the function will be looking for packages. Unless there is reshape2 directory in your current working directory that happens to contain some valid packages, the function will return nothing.

If you want to download and install package, use install.packages:

install.packages("reshape2")

If you want to download package (but not install it), use download.packages.



来源:https://stackoverflow.com/questions/34473256/i-am-unable-to-download-the-reshape2-package-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!