Demo

System setup

Setup is not fun!

🧰 (no breakout room) Anything still amiss to report? 🀞


Package creation

πŸ‘€ usethis website

🧰 Repeat the same steps, post the link to your package repo in the chat!


A first function

  • usethis::use_r("time"). Explain what sprintf() does.

  • devtools::load(), what_time().

  • add an argument.

  • devtools::load(), what_time(), what_time(language = "en").

🧰 Repeat the steps!


Manual page

  • Insert roxygen2 skeleton.

  • devtools::document(), ?what_time, show the Rd file.

  • Build and reload (install packages from RStudio build tab), try using the package from another session. Or install from GitHub.

πŸ‘€ roxygen2 website

πŸ‘€ R Packages book, the whole game

🧰 Repeat the steps!


Use dependencies

  • add two dependencies, use_package("praise") and use_package("rlang").

  • devtools::load(), what_time(), what_time(language = "en").

🧰 Repeat the steps!