class: center, middle, inverse, title-slide # R Packages: Whole Game ### 2020-01-24 --- class: middle, center <img src="img/where_are_we_00.png" width="100%" height="100%" style="display: block; margin: auto;" /> --- class: middle, center, inverse # We're going to make a package *right now* --- class: middle, center, inverse, # **`usethis::create_package("mbmisc2")`** --- class: middle, center, inverse, # **`library(devtools)`** # **`library(usethis)`** --- class: middle, center, inverse, # **`use_r("labs_wrap")`** --- class: middle, center, inverse, # **`use_package("ggplot2")`** # **`use_package("tibble")`** # **`use_package("dplyr")`** # **`use_package("stringr")`** --- class: middle, center, inverse, # 🔨 **Build** # ✔️ **R CMD Check** --- class: middle, center, inverse, # **Edit DESCRIPTION** --- class: middle, center, inverse, # **`use_mit_license("Your Name")`** --- class: middle, center, inverse, # **`use_roxygen_md()`** # **`document()`** --- class: middle, center, inverse, # 🔨 **Build** # ✔️ **R CMD Check** --- class: middle, center, inverse, # **`use_test("labs_wrap")`** # **`test()`** --- class: middle, center, inverse, # **`use_git()`** # **`use_github()`** --- class: inverse, center # Resources ## [R Packages, 2nd Edition](https://r-pkgs.org/): The work-in-progress second edition of R Packages. Uses the most cutting edge tools to make your life easier. Free online. ## [R Packages, 1st Edition](http://r-pkgs.had.co.nz/): The first edition of R Packages. Still very good! Free online.