1. Learn
  2. /
  3. Courses
  4. /
  5. Creating R Packages

Exercise

Importing other packages

If you wish to use functions from other packages, you should import them in your roxygen header. You can use @import to import an entire package, or @importFrom to import a single function. To show you how @importFrom works, we have imported the gather() function from the tidyr package for you (although it's not needed in this case).

Instructions

100 XP
  • Update the data_summary() function to import packages purrr and dplyr.