-
Notifications
You must be signed in to change notification settings - Fork 0
/
usethis_hist.R
111 lines (76 loc) · 2.27 KB
/
usethis_hist.R
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Setup ----
usethis::git_vaccinate()
desc::desc_coerce_authors_at_r()
usethis::use_author(
given = "Josef",
family = "Fruehwald",
email = "jofrhwld@gmail.com",
role = c("aut","cre", "cph")
)
usethis::use_roxygen_md()
desc::desc_set(
"Title",
"Polygons of Bivariate Density Distributions"
)
desc::desc_set(
"Description",
"With bivariate data, it is possible to calculate 2-dimensional kernel density
estimates that return polygons at given levels of probability. 'densityarea'
returns these polygons for analysis, including for calculating their area.",
normalize = T
)
usethis::use_gpl3_license()
usethis::use_readme_md()
fs::file_delete(
here::here("NAMESPACE")
)
roxygen2::roxygenize()
# Connecting to github ----
usethis::use_github()
# Dependencies ----
usethis::use_package("R", type = "Depends", min_version = "4.1")
## imports ----
usethis::use_package("isoband")
usethis::use_package("tibble")
usethis::use_package("dplyr")
usethis::use_package("purrr")
usethis::use_package("ggdensity")
usethis::use_package("sf")
usethis::use_package("tidyr")
usethis::use_package("sfheaders")
usethis::use_package("vctrs")
usethis::use_package("cli")
usethis::use_package("rlang")
## suggests ----
usethis::use_package("readr", type = "Suggests")
usethis::use_package("forcats", type = "Suggests")
usethis::use_package("ggplot2", type = "Suggests")
usethis::use_package("ragg", type = "Suggests")
usethis::use_package("stringr", type = "Suggests")
# Data ----
usethis::use_data_raw("s01")
# Documentation ----
usethis::use_vignette(name = "densityarea", title = "Using `{densityarea}`")
usethis::use_vignette(name = "sf-operations", title = "Using `{sf}` operations")
# Tests ----
usethis::use_testthat(3)
usethis::use_test("list_return")
usethis::use_test("sf_return")
usethis::use_test("multi_polygon")
usethis::use_test("expand_range")
usethis::use_test("test_rename")
usethis::use_test("test_range")
# Github ----
usethis::use_github_action(name = "check-standard")
usethis::use_pkgdown()
usethis::use_pkgdown_github_pages()
# Docs ----
usethis::use_logo("logo.svg")
# CRAN submission prep ----
usethis::use_news_md()
usethis::use_cran_comments()
# CRAN publication
usethis::use_cran_badge()
usethis::use_github_release()
# Dev forward look
usethis::use_dev_version()