-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
76 lines (54 loc) · 2.47 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ussie
<!-- badges: start -->
[![R-CMD-check](https://github.com/rstudio-conf-2022/ussie/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio-conf-2022/ussie/actions)
<!-- badges: end -->
The goal of ussie is to make a first attempt at a demo package for folks to build for the "Building Tidy Tools" course at rstudio::conf(2022L).
## Installation
You can install the development version of ussie from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("rstudio-conf-2022/ussie")
```
## Notes
I want to note the functions that I used to manage the development of this package:
[Package-development setup](https://r-pkgs.org/setup.html#personal-startup-configuration):
- `usethis::edit_r_profile()`
[Git setup](https://r-pkgs.org/git.html#git-setup) - good for git setup, but current tidyverse recommendation is to use https rather than ssh:
- `gert::git_config_global_set()` can use for `"user.name"`, `"user.email"`
- `usethis::git_vaccinate()`
- `usethis::git_default_branch_configure()` set default for future repos
- `usethis::git_default_branch_rename()` rename default branch of existing repo
[GitHub setup](https://usethis.r-lib.org/articles/git-credentials.html):
- `usethis::create_github_token()`
- `gitcreds::gitcreds_set()`
Verification:
- `usethis::git_sitrep()`
Development:
- `usethis::create_package()`
- `usethis::use_git()`
- `usethis::use_github()`
- `usethis::use_readme_rmd()`
- `usethis::use_package()`
- `usethis::use_test()`
- `usethis::use_github_action_check_release()` minimal check
- `usethis::use_github_action_check_standard()` if thinking of CRAN
- `usethis::use_package_doc()`, then `usethis::use_tibble()`
- add `#' @importFrom rlang .data` to `ussie-package.R` - prefer this to `usethis::use_tidy_eval()`
- even better: `usethis::use_import_from()`, e.g. `usethis::use_import_from("rlang", ".data")`
- `usethis::use_pkgdown()`, `usethis::use_github_action("pkgdown")`
- `usethis::use_github_pages()`: configure GH pages once the pkg action succeds, wait a minute et voilà!
- `usethis::pr_init()`, `usethis::pr_push()`, `usethis::pr_finish()`, `usethis::pr_resume()`
- `usethis::use_news_md()`
note, we need {shiny}, {diffviewer} to review snapshot tests