I can not load the reshape2 package in R

I get this answer when I try 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) Works under: Windows 8 x64 (build 9200)

+7
r install package reshape2
source share
1 answer

The function you named is not used to download packages .

installed.packaged returns information about packages available by R. The first argument determines where the function will search for packages. If the current working directory does not contain the reshape2 directory, which contains some valid packages, the function will return nothing.

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

 install.packages("reshape2") 

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

+26
source share

All Articles