-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
62 lines (53 loc) · 1.65 KB
/
Copy pathnotes
File metadata and controls
62 lines (53 loc) · 1.65 KB
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
ALEX, TO UPDATE README.QMD, RUN:
HOWEVER MAKE SURE TO UPDATE THE VERSION # FIRST!!!
quarto::quarto_render("README.qmd")
AT THE CONSOLE--DON'T HIT THE RENDER BUTTON!
quarto::quarto_render("docs/ggplotplus_guide.qmd")
###UPDATING THE PACKAGE FILES
First, load devtools.
Then, do devtools::load_all(). Resolve any conflicts with global.
Then, do devtools::document(). Resolve any conflicts and identified issues. Check Namespace and description for updates
#Then do devtools::install(). This will make sure the package can successfully install locally. HOWEVER, I THINK CHECK ALREADY CHECKS FOR THIS.
Then, do devtools::check(). This will search for bugs/errors/misspecifications, etc.
#rcmdcheck::rcmdcheck() will do a much more thorough search with respect to things that CRAN would care about. But it doesn't work, and it's not necessary.
###CRAN DEPLOYMENT CHECKLIST
devtools::document()
devtools::check()
devtools::check_win_devel()
devtools::check_win_release()
#usethis::use_cran_comments()
devtools::spell_check()
urlchecker::url_check()
devtools::submit_cran()
library(dplyr)
library(ggplot2)
library(cranlogs)
downloads = cran_downloads(
packages = "ggplotplus",
from = "2026-06-01",
to = Sys.Date()
)
downloads %>%
summarize(
total = sum(count),
mean_per_day = mean(count),
max_day = max(count)
)
ggplot(downloads, aes(x = date, y = count)) +
geom_col() +
labs(
x = NULL,
y = "CRAN downloads",
title = "ggplotplus CRAN downloads"
)
downloads %>%
mutate(
rolling_7day = slider::slide_dbl(count, mean, .before = 6, .complete = TRUE)
) %>%
ggplot(aes(x = date, y = rolling_7day)) +
geom_line() +
labs(
x = NULL,
y = "7-day mean downloads",
title = "ggplotplus CRAN downloads"
)