What the Package Does (One Line, Title Case)
This is for functions that I use regularly such as plotting stuff
It is also the first package that I have made so it is expected to have bugs.
Guide used: https://www.pipinghotdata.com/posts/2020-10-25-your-first-r-package-in-1-hour/
library(usethis)
library(devtools)
usethis::create_package("path/package")
usethis::use_git()
usethis::use_github()
usethis::use_mit_license("Your name")
devtools::check()
usethis::use_r("function_name")
devtools::load_all()
Put curser inside the function then either
Code -> Insert Roxygen Skeleton
Shift + Option + Apple + R
devtools::document()
?function
devtools::check()
usethis::use_package("package")
package::function
devtools::document()
devtools::check()
devtools::install("path/package")
#or
devtools::install_github("user/repo")