3

I'm getting errors trying to use install.packages(corrplot) in RStudio:

library(corrplot)

Error in library(corrplot) : there is no package called 'corrplot'

install.packages(corrplot)

Error in install.packages : object 'corrplot' not found

What am I doing wrong?

Screenshot of error message

coatless
  • 20,011
  • 13
  • 69
  • 84
jiaxil
  • 49
  • 1
  • 1
  • 2
  • 1
    Possible duplicate of [Can't install ISLR package in R](http://stackoverflow.com/questions/30838177/cant-install-islr-package-in-r) – jogo Oct 26 '16 at 06:03
  • 1
    should be `install.packages('corrplot')` – Chris Oct 26 '16 at 16:35

1 Answers1

8

You need to put it in quotes.

install.packages("corrplot")

Then you can load it.

https://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html

Lloyd Christmas
  • 1,016
  • 6
  • 15