12

This is the code I ran:

install.packages(ISLR);

And this was the response:

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

Any advice?

zx8754
  • 52,746
  • 12
  • 114
  • 209
Madhavi Jouhari
  • 2,282
  • 5
  • 25
  • 40

1 Answers1

29
  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.
cyberj0g
  • 3,707
  • 1
  • 19
  • 34