Console
usethis::use_package("readr")
usethis::use_package("snakecase")
usethis::use_package("fs")
🚧 We are doing major changes to this workshop, so much of the content will be changed. 🚧
Time: ~10 minutes.
While we added readr to the function, we haven’t added it to the DESCRIPTION
file yet. In the Console, use usethis::use_package()
to add the readr package to the DESCRIPTION
file.
There is one other function we use in the import_cgm()
function. Find it, figure out what package it comes from, use ::
to explicitly state the package, and add it to DESCRIPTION
file using usethis::use_package()
in the Console.
This is what the function should look like after using ::
.
DESCRIPTION
file. We used the package in the data-raw/dime.R
file. Open that file, which you can do with Ctrl-.Ctrl-. and typing “dime.R” and selecting the file from the menu. In that file, find the package we used and add it to the DESCRIPTION
file using usethis::use_package()
in the Console.Run these in the Console to add the packages to the DESCRIPTION
file.
Console
usethis::use_package("readr")
usethis::use_package("snakecase")
usethis::use_package("fs")
docs/learning.qmd
file with Ctrl-Shift-KCtrl-Shift-K or with the Palette (Ctrl-Shift-PCtrl-Shift-P, then type “render”) to test that everything still works, and then add and commit the changes to Git with Ctrl-Alt-MCtrl-Alt-M or with the Palette (Ctrl-Shift-PCtrl-Shift-P, then type “commit”).When you’re ready to continue, place the sticky/paper hat on your computer to indicate this to the teacher 👒 🎩