.Library, .libPaths()
install.packages("devtools"). Setup chapter of the R packages book.
install.packages("pak").
usethis::git_sitrep(). Managing Git(Hub) Credentials; “Managing GitHub credentials from R, difficulty level linux”.
usethis and devtools setup in my .Rprofile. usethis::edit_r_profile(), what is an .Rprofile? usethis setup article.
Setup is not fun!
🧰 (no breakout room) Anything still amiss to report? 🤞
pak::pkg_name_check("minipkg")
usethis::create_package("../minipkg")
usethis::use_github(). Look at repository including ✨ issue tracker ✨.
🧰 Repeat the same steps, post the link to your package repo in the chat!
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!
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.
👀 R Packages book, the whole game
🧰 Repeat the steps!
add two dependencies, use_package("praise") and use_package("rlang").
devtools::load(), what_time(), what_time(language = "en").
🧰 Repeat the steps!