install.packages("devtools")
. Setup chapter of the R packages book.
usethis and devtools setup in my .Rprofile. usethis::edit_r_profile()
usethis::create_package("/home/maelle/Documents/teaching/minipkg")
in a shell git branch -m master main
devtools::load()
, what_time()
Insert roxygen2 skeleton.
devtools::document()
, ?what_time
add an argument, @param language blabla
in docs, devtools::document()
, ?what_time
modify function, use_package("praise")
usethis::use_readme_rmd()
, write stuff
Build and reload (install packages from RStudio build tab), try using the package from another session. Or install from GitHub.
install.packages("pkgdown")
, usethis::use_pkgdown()
, pkgdown::build_site()
usethis::use_release_issue()
for information
usethis::use_github_action("pkgdown")
, change GitHub pages settings of the repo, add URL to pkgdown config and to DESCRIPTION.