To cite package ‘ISLR2’ in publications use:

James G, Witten D, Hastie T, Tibshirani R (2022). ISLR2: Introduction to Statistical Learning, Second Edition. R package version 1.3-2, https://CRAN.R-project.org/package=ISLR2.

Corresponding BibTeX entry:

  @Manual{,
    title = {ISLR2: Introduction to Statistical Learning, Second
      Edition},
    author = {Gareth James and Daniela Witten and Trevor Hastie and Rob
      Tibshirani},
    year = {2022},
    note = {R package version 1.3-2},
    url = {https://CRAN.R-project.org/package=ISLR2},
  }