forked from guyabel/wcde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_package.R
55 lines (44 loc) · 1.26 KB
/
build_package.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
library(usethis)
# create_tidy_package(path = "Github/tidywpp")
usethis::use_pipe()
usethis::use_tibble()
usethis::use_build_ignore(
c("tests", "data-host", "data-host-batch", "build_package.R",
"data-raw", "data1.R", "data2.R")
)
roxygen2::roxygenise()
# move data-host and data-host-bulk outside of directory whilst
# doing check https://community.rstudio.com/t/r-cmd-check-preparing-package/27151
devtools::check(vignettes = FALSE)
devtools::check()
devtools::build()
file.show("NEWS.md")
usethis::use_pkgdown()
pkgdown::build_site()
pkgdown::build_reference()
usethis::use_badge()
cranlogs::cranlogs_badge(package_name = "wcde", summary = "grand-total")
usethis::use_github_action_check_standard()
usethis::use_github_action("pkgdown")
usethis::use_github_actions_badge()
devtools::build_vignettes()
usethis::use_spell_check()
usethis::use_release_issue()
usethis::use_citation()
usethis::use_package()
usethis::use_tidy_thanks()
# think this is for the help files?
library(tidyverse)
library(tidywpp)
wpp_indicators %>%
select(1:2, file_group) %>%
distinct() %>%
arrange(name) %>%
knitr::kable() %>%
write_lines('temp.md')
wpp_indicators %>%
select(contains("var")) %>%
distinct() %>%
knitr::kable() %>%
write_lines('temp.md')
file.remove("temp.md")