.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 β¨.
π usethis website
π§° 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.
π roxygen2 website
π 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!