Trouble using installed package from Dalgaard "Introductory statistics with R", 2nd ed

Error Information:

Several for data sets such as,

Warning message: "In data(juul) : data set ‘juul’ not found"

Description of issue

I'm new to R and I'm learning R through Dalgaards "Introductory Statistics with R", second edition. I have trouble using the books' "ISwR"-package with examples and exercises.

R says installation is successful after running:


However, when I call upon data sets within the package, e.g.


I get the following warning message:

In data(juul) : data set ‘juul’ not found

Does anyone know what I can do to fix this?


Steps taken so far
I've installed package through Rstudio and R

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: Updated RStudio today
  • R Version: Updated RStudio today


All codes seem to be running fine after specifying


So I think the problem is solved.