ASKurz / Statistical_Rethinking_with_brms_ggplot2_and_the_tidyverse_2_ed

The bookdown version lives here:
https://bookdown.org/content/4857/
Creative Commons Zero v1.0 Universal
125 stars 37 forks source link

Use of 'package' argument in data() #9

Closed ecmerkle closed 3 years ago

ecmerkle commented 3 years ago

Thanks for the nice resource to supplement Statistical Rethinking. I had one suggestion for loading datasets from the rethinking package. Instead of going to the trouble of detaching rethinking after pulling out a dataset, you might be able to do something like:

data(UCBadmit, package="rethinking")

I believe that rethinking is not loaded in that case, but you still get the dataset. It might streamline some future code, though it is probably not worth changing the existing code. (so feel free to close this issue immediately)

ASKurz commented 3 years ago

Ooo, that works nice. I'll make the change in the upcoming update. Thanks!