Can't install ISLR package

Madhavi Jouhari picture Madhavi Jouhari · Jun 15, 2015 · Viewed 23.5k times · Source

This is the code I ran:

install.packages(ISLR);

And this was the response:

>Error in install.packages : object 'ISLR' not found

Any advice?

Answer

cyberj0g picture cyberj0g · Jun 15, 2015
  1. Use quotes install.packages('ISLR').
  2. Make sure your internet connection available.
  3. If you're getting package is not available as binaries, update your R to the current version.
  4. After successfull installation, call library('ISLR') to load package.