-
Notifications
You must be signed in to change notification settings - Fork 2
/
devstuff_history.R
77 lines (65 loc) · 1.95 KB
/
devstuff_history.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
# Hide this file from build
usethis::use_build_ignore("devstuff_history.R")
usethis::use_build_ignore("inst/dev")
usethis::use_build_ignore("rsconnect")
usethis::use_git_ignore("docs/")
usethis::use_git_ignore("rsconnect/")
# usethis::create_package(".")
# git
usethis::use_git()
usethis::use_github()
# description ----
library(desc)
unlink("DESCRIPTION")
my_desc <- description$new("!new")
my_desc$set_version("0.0.0.9000")
my_desc$set(Package = "cartomisc")
my_desc$set(Title = "Miscellaneous tools for spatial data")
my_desc$set(Description = "Some useful tools for use with spatial data.")
my_desc$set("Authors@R",
'c(
person("Sebastien", "Rochette", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-1565-9313"))
)')
my_desc$set("VignetteBuilder", "knitr")
my_desc$del("Maintainer")
my_desc$del("URL")
my_desc$del("BugReports")
my_desc$write(file = "DESCRIPTION")
# Licence ----
usethis::use_mit_license("Sébastien Rochette")
# usethis::use_gpl3_license("ThinkR")
# Pipe ----
usethis::use_pipe()
# Package quality ----
# _Tests
usethis::use_testthat()
usethis::use_test("app")
# _CI
# usethis::use_travis()
# usethis::use_appveyor()
# usethis::use_coverage()
usethis::use_github_action_check_standard()
usethis::use_github_action("pkgdown")
# _rhub
# rhub::check_for_cran()
# Documentation ----
# _Readme
usethis::use_readme_rmd()
# _News
usethis::use_news_md()
# _Vignette
thinkridentity::create_vignette_thinkr("aa-introduction")
usethis::use_vignette("aa-introduction")
usethis::use_vignette("regional-seas-buffer")
devtools::build_vignettes()
# Dependencies ----
# devtools::install_github("ThinkR-open/attachment")
attachment::att_to_description()
attachment::att_to_description(extra.suggests = c("bookdown", "pkgdown"))
# attachment::create_dependencies_file()
# Utils for dev ----
devtools::install(upgrade = "never")
# devtools::load_all()
devtools::check(vignettes = TRUE)
# ascii
stringi::stri_trans_general("é", "hex")