Note to Maëlle: SLOW DOWN!! Commit often, show state of folder. Mute if typing secrets or just typing a lot as you type loudly.
.Library
, .libPaths()
install.packages("devtools")
. Setup chapter of the R packages book.
usethis and devtools setup in my .Rprofile. usethis::edit_r_profile()
, what is an .Rprofile? usethis setup article.
Setup is not fun!
usethis::create_package("/home/maelle/Documents/teaching/minipkg")
in a shell git branch -m master main
usethis::use_r("time")
. Explain what sprintf()
does.
devtools::load()
, what_time()
Insert roxygen2 skeleton.
devtools::document()
, ?what_time
, show the Rd file.
add an argument, @param language blabla
in docs, devtools::document()
, ?what_time
usethis::use_test("current-time")
: first a simple test, then a snapshot test, then a snapshot of the error.
devtools::test()
/ test the file on its own via the button.
modify function, use_package("praise")
usethis::use_readme_rmd()
, write stuff
usethis::use_github()
(usethis::use_github_links()
). Show the GitHub repo, its description.
Build and reload (install packages from RStudio build tab), try using the package from another session. Or install from GitHub.
usethis::use_github_action_check_standard()
. Check on the cloud, different operating systems.
install.packages("pkgdown")
, usethis::use_pkgdown()
, pkgdown::build_site()
. Locally.
usethis::use_github_action("pkgdown")
, change GitHub pages settings of the repo, add URL to pkgdown config and to DESCRIPTION.
usethis::use_release_issue()
for information