-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev_history.R
152 lines (119 loc) · 3.75 KB
/
dev_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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# git reset --hard HEAD~1
# remotes::install_github("ropenscilabs/travis")
path <- "/Users/nicolascasajus/Documents"
pkname <- "pkgmin"
usethis::create_package(file.path(path, pkname))
usethis::use_git()
usethis::edit_file("DESCRIPTION")
## ● Edit 'DESCRIPTION'
system("git add -A")
system("git commit -m 'Edit package metadata'")
usethis::use_mit_license(name = "Nicolas Casajus")
system("git add -A")
system("git commit -m 'Add package license'")
usethis::use_roxygen_md()
system("git add -A")
system("git commit -m 'Setting roxygen2'")
usethis::use_package_doc()
system("git add -A")
system("git commit -m 'Edit package documentation'")
devtools::document()
system("git add -A")
system("git commit -m 'Generate package documentation (Rd file)'")
usethis::use_r("moyenne")
## ● Edit 'R/moyenne.R' (R code)
system("git add -A")
system("git commit -m 'Implement R function'")
usethis::use_r("moyenne")
## ● Edit 'R/moyenne.R' (roxygen)
system("git add -A")
system("git commit -m 'Add roxygen documentation'")
devtools::document()
system("git add -A")
system("git commit -m 'Generate moyenne documentation (Rd file)'")
usethis::use_package(package = "magrittr")
usethis::use_package(package = "stats")
system("git add -A")
system("git commit -m 'Add external dependencies'")
set.seed(1637)
x <- rnorm(9)
y <- c(NA, 2:9)
xy <- data.frame(x, y)
usethis::use_data(xy, internal = FALSE)
system("git add -A")
system("git commit -m 'Add internal dataset'")
usethis::use_r("xy")
## ● Edit 'R/xy.R' (roxygen)
system("git add -A")
system("git commit -m 'Add roxygen documentation'")
devtools::document()
system("git add -A")
system("git commit -m 'Generate dataset documentation (Rd file)'")
usethis::use_r("moyenne")
## ● Edit 'R/moyenne.R' (roxygen)
system("git add -A")
system("git commit -m 'Update roxygen example'")
devtools::document()
system("git add -A")
system("git commit -m 'Update moyenne documentation (Rd file)'")
devtools::check()
usethis::use_version(which = "major")
usethis::use_vignette("pkgmin")
system("git add -A")
system("git commit -m 'Create package vignette'")
## ● Edit 'vignettes/pkgmin.Rmd'
system("git add -A")
system("git commit -m 'Edit package vignette'")
usethis::use_readme_rmd()
system("git add -A")
system("git commit -m 'Create README' --no-verify")
## ● Edit 'README.Rmd'
rmarkdown::render("README.Rmd")
usethis::use_git_ignore("README.html")
system("git add -A")
system("git commit -m 'Edit README'")
## ● Remove inst/doc from .gitignore
system("git add -A")
system("git commit -m 'Remove inst/doc'")
usethis::use_github(protocol = "https")
usethis::use_travis()
## ● Edit '.travis.yml'
rmarkdown::render("README.Rmd")
system("git add -A")
system("git commit -m 'Setup Travis CI'")
system("git push")
usethis::use_appveyor()
## ● Edit 'appveyor.yml'
rmarkdown::render("README.Rmd")
system("git add -A")
system("git commit -m 'Setup Appveyor'")
system("git push")
usethis::use_pkgdown()
system("git add -A")
system("git commit -m 'Setup pkgdown'")
system("git push")
pkgdown::build_site()
system("git add -A")
system("git commit -m 'Build website'")
system("git push")
usethis::use_pkgdown_travis()
travis::use_travis_deploy()
## ● Edit '.travis.yml'
system("git add -A")
system("git commit -m 'Build website (with Travis CI)'")
system("git push")
usethis::use_testthat()
usethis::use_test("moyenne")
system("git add -A")
system("git commit -m 'Init testthat'")
system("git push")
## ● Edit 'tests/testthat/test-moyenne.R'
system("git add -A")
system("git commit -m 'Edit moyenne tests & Improve function checks'")
system("git push")
usethis::use_coverage("codecov")
## ● Wait a few minutes (after adding repository on https://codecov.io)
rmarkdown::render("README.Rmd")
system("git add -A")
system("git commit -m 'Setup codecov'")
system("git push")