Skip to content

Commit 49ab665

Browse files
committed
update why-rJavaEnv article
1 parent 5bc3fea commit 49ab665

16 files changed

+3632
-165
lines changed

vignettes/data-for-vignettes/data_table_dlstats.csv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,7 @@ start;end;downloads;package
124124
2024-03-01;2024-03-31;845520;data.table
125125
2024-04-01;2024-04-30;886330;data.table
126126
2024-05-01;2024-05-31;846726;data.table
127-
2024-06-01;2024-06-26;550578;data.table
127+
2024-06-01;2024-06-30;677560;data.table
128+
2024-07-01;2024-07-31;698441;data.table
129+
2024-08-01;2024-08-31;749291;data.table
130+
2024-09-01;2024-09-26;729796;data.table

vignettes/data-for-vignettes/get-data-for-vignettes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rm(package_list)
88

99
dlstats::set_cran_start_year(2014)
1010

11-
rJava_dependants <- devtools::revdep("rJava", dependencies = c("Imports", "Depends"), bioconductor = FALSE)
11+
rJava_dependants <- devtools::revdep("rJava", dependencies = c("Imports", "Depends"), bioconductor = TRUE)
1212

1313
rJava_dlstats <- dlstats::cran_stats("rJava", use_cache = FALSE)
1414
rJava_dependants_dlstats_cran <- dlstats::cran_stats(rJava_dependants, use_cache = FALSE)

vignettes/data-for-vignettes/ggplot2_dlstats.csv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,7 @@ start;end;downloads;package
124124
2024-03-01;2024-03-31;2469492;ggplot2
125125
2024-04-01;2024-04-30;1932736;ggplot2
126126
2024-05-01;2024-05-31;1891742;ggplot2
127-
2024-06-01;2024-06-26;1302455;ggplot2
127+
2024-06-01;2024-06-30;1599144;ggplot2
128+
2024-07-01;2024-07-31;1536478;ggplot2
129+
2024-08-01;2024-08-31;1458005;ggplot2
130+
2024-09-01;2024-09-26;1329676;ggplot2

vignettes/data-for-vignettes/produce-graphs-for-why-rJavaEnv.R

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rJava_dependants_dlstats_bioc <- readr::read_csv2("vignettes/data-for-vignettes/
1111
data_table_dlstats <- readr::read_csv2("vignettes/data-for-vignettes/data_table_dlstats.csv")
1212
ggplot2_dlstats <- readr::read_csv2("vignettes/data-for-vignettes/ggplot2_dlstats.csv")
1313

14-
cutoff_date <- "2024-05-31"
14+
cutoff_date <- "2024-09-26"
1515

1616
rj_and_rj_dep_total_down <- rJava_dependants_dlstats_cran |>
1717
rbind(rJava_dlstats) |>
@@ -69,15 +69,21 @@ rJavaPopularity_GTable <- ggplot_gtable(ggplot_build(p_rJavaPopularity))
6969
rJavaPopularity_GTable$layout$clip[rJavaPopularity_GTable$layout$name == "panel"] <- "off"
7070

7171
# Draw the plot
72-
p_rJavaPopularity_filepath <- "vignettes/media/images/rJavaPopularity.png"
73-
if ( ! file.exists(p_rJavaPopularity_filepath) ) {
74-
dir.create(dirname(p_rJavaPopularity_filepath), recursive = TRUE)
75-
png(p_rJavaPopularity_filepath, width = 12, height = 6, units = "in", res = 300)
76-
grid::grid.draw(rJavaPopularity_GTable)
77-
dev.off()
78-
}
72+
p_rJavaPopularity_filepath <- "vignettes/media/images/rJavaPopularity.svg"
73+
dir.create(dirname(p_rJavaPopularity_filepath), recursive = TRUE)
74+
svg(p_rJavaPopularity_filepath, width = 12, height = 6)
75+
grid::grid.draw(rJavaPopularity_GTable)
76+
dev.off()
77+
78+
# resmush::resmush_file(p_rJavaPopularity_filepath, overwrite = TRUE)
79+
80+
p_rJavaPopularity_filepath_pdf <- "vignettes/media/images/rJavaPopularity.pdf"
81+
dir.create(dirname(p_rJavaPopularity_filepath_pdf), recursive = TRUE)
82+
cairo_pdf(p_rJavaPopularity_filepath_pdf, width = 12, height = 6)
83+
grid::grid.draw(rJavaPopularity_GTable)
84+
dev.off()
85+
7986

80-
resmush::resmush_file(p_rJavaPopularity_filepath, overwrite = TRUE)
8187

8288

8389

@@ -97,22 +103,21 @@ p_rJavaDepIndivAll <- rJava_dependants_dlstats_cran |>
97103
color = "Package")
98104

99105
# Draw the plot
100-
p_rJavaDepIndivAll_filepath <- "vignettes/media/images/rJavaDepIndivAll.png"
101-
if ( ! file.exists(p_rJavaDepIndivAll_filepath) ) {
102-
dir.create(dirname(p_rJavaDepIndivAll_filepath), recursive = TRUE)
103-
png(p_rJavaDepIndivAll_filepath, width = 12, height = 6, units = "in", res = 300)
104-
grid::grid.draw(p_rJavaDepIndivAll)
105-
dev.off()
106-
}
106+
p_rJavaDepIndivAll_filepath <- "vignettes/media/images/rJavaDepIndivAll.svg"
107+
dir.create(dirname(p_rJavaDepIndivAll_filepath), recursive = TRUE)
108+
svg(p_rJavaDepIndivAll_filepath, width = 12, height = 6)
109+
grid::grid.draw(p_rJavaDepIndivAll)
110+
dev.off()
111+
107112

108-
resmush::resmush_file(p_rJavaDepIndivAll_filepath, overwrite = TRUE)
113+
# resmush::resmush_file(p_rJavaDepIndivAll_filepath, overwrite = TRUE)
109114

110115
# top 20 rJava-dependent packages without xlsx -----------------------------------------
111116

112117
p_rJavaDepIndivFiltered <- rJava_dependants_dlstats_cran |>
113118
filter(! package %in% c("xlsx", "xlsxjars") ) |>
114119
filter(! grepl("jars$", package)) |>
115-
filter(end >= "2023-05-01") |>
120+
filter(end >= "2023-09-26") |>
116121
group_by(package) |>
117122
summarise(downloads = sum(downloads, na.rm = T), .groups = "drop") |>
118123
arrange(desc(downloads)) |>
@@ -128,27 +133,25 @@ p_rJavaDepIndivFiltered <- rJava_dependants_dlstats_cran |>
128133
# gghighlight(max(downloads), max_highlight = 6L) +
129134
theme_pubclean(base_size = 18) +
130135
labs(title = "Top rJava-based Package Downloads",
131-
subtitle = "Over the Last Year (May 2023 - May 2024)",
136+
subtitle = "Over the Last Year (September 2023 - September 2024)",
132137
x = "Total dowloads",
133138
y = "")
134139

135140
# Draw the plot
136-
# Draw the plot
137-
p_rJavaDepIndivFiltered_filepath <- "vignettes/media/images/rJavaDepIndivFiltered.png"
138-
if ( ! file.exists(p_rJavaDepIndivFiltered_filepath) ) {
139-
dir.create(dirname(p_rJavaDepIndivFiltered_filepath), recursive = TRUE)
140-
png(p_rJavaDepIndivFiltered_filepath, width = 12, height = 6, units = "in", res = 300)
141-
grid::grid.draw(p_rJavaDepIndivFiltered)
142-
dev.off()
143-
}
141+
p_rJavaDepIndivFiltered_filepath <- "vignettes/media/images/rJavaDepIndivFiltered.svg"
142+
dir.create(dirname(p_rJavaDepIndivFiltered_filepath), recursive = TRUE)
143+
svg(p_rJavaDepIndivFiltered_filepath, width = 12, height = 6)
144+
grid::grid.draw(p_rJavaDepIndivFiltered)
145+
dev.off()
146+
144147

145-
resmush::resmush_file(p_rJavaDepIndivFiltered_filepath, overwrite = TRUE)
148+
# resmush::resmush_file(p_rJavaDepIndivFiltered_filepath, overwrite = TRUE)
146149

147150
# top 20 rJava-dependent packages with xlsx -----------------------------------------
148151

149152
p_rJavaDepIndivFilteredXslx <- rJava_dependants_dlstats_cran |>
150153
filter(! grepl("jars$", package)) |>
151-
filter(end >= "2023-05-01") |>
154+
filter(end >= "2023-09-26") |>
152155
group_by(package) |>
153156
summarise(downloads = sum(downloads, na.rm = T), .groups = "drop") |>
154157
arrange(desc(downloads)) |>
@@ -164,18 +167,17 @@ p_rJavaDepIndivFilteredXslx <- rJava_dependants_dlstats_cran |>
164167
# gghighlight(max(downloads), max_highlight = 6L) +
165168
theme_pubclean(base_size = 18) +
166169
labs(title = "Top rJava-based Package Downloads",
167-
subtitle = "Over the Last Year (May 2023 - May 2024)",
170+
subtitle = "Over the Last Year (September 2023 - September 2024)",
168171
x = "Total dowloads",
169172
y = "")
170173

174+
171175
# Draw the plot
172-
# Draw the plot
173-
p_rJavaDepIndivFilteredXslx_filepath <- "vignettes/media/images/rJavaDepIndivFilteredXslx.png"
174-
if ( ! file.exists(p_rJavaDepIndivFilteredXslx_filepath) ) {
175-
dir.create(dirname(p_rJavaDepIndivFilteredXslx_filepath), recursive = TRUE)
176-
png(p_rJavaDepIndivFilteredXslx_filepath, width = 12, height = 6, units = "in", res = 300)
177-
grid::grid.draw(p_rJavaDepIndivFilteredXslx)
178-
dev.off()
179-
}
176+
p_rJavaDepIndivFilteredXslx_filepath <- "vignettes/media/images/rJavaDepIndivFilteredXslx.svg"
177+
dir.create(dirname(p_rJavaDepIndivFilteredXslx_filepath), recursive = TRUE)
178+
svg(p_rJavaDepIndivFilteredXslx_filepath, width = 12, height = 6)
179+
grid::grid.draw(p_rJavaDepIndivFilteredXslx)
180+
dev.off()
181+
180182

181-
resmush::resmush_file(p_rJavaDepIndivFiltered_filepath, overwrite = TRUE)
183+
# resmush::resmush_file(p_rJavaDepIndivFiltered_filepath, overwrite = TRUE)

vignettes/data-for-vignettes/rJava_dependants_dlstats_bioc.csv

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
115115
2024-03-01;2024-03-31;87;133;BridgeDbR
116116
2024-04-01;2024-04-30;132;414;BridgeDbR
117117
2024-05-01;2024-05-31;115;421;BridgeDbR
118-
2024-06-01;2024-06-26;69;590;BridgeDbR
118+
2024-06-01;2024-06-30;81;616;BridgeDbR
119+
2024-07-01;2024-07-31;77;157;BridgeDbR
120+
2024-08-01;2024-08-31;92;162;BridgeDbR
121+
2024-09-01;2024-09-26;150;232;BridgeDbR
119122
2016-04-01;2016-04-30;8;12;CHRONOS
120123
2016-05-01;2016-05-31;73;99;CHRONOS
121124
2016-06-01;2016-06-30;88;128;CHRONOS
@@ -214,7 +217,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
214217
2024-03-01;2024-03-31;96;156;CHRONOS
215218
2024-04-01;2024-04-30;119;412;CHRONOS
216219
2024-05-01;2024-05-31;91;404;CHRONOS
217-
2024-06-01;2024-06-26;45;564;CHRONOS
220+
2024-06-01;2024-06-30;56;591;CHRONOS
221+
2024-07-01;2024-07-31;127;229;CHRONOS
222+
2024-08-01;2024-08-31;97;179;CHRONOS
223+
2024-09-01;2024-09-26;128;236;CHRONOS
218224
2019-09-01;2019-09-30;1;1;debCAM
219225
2019-10-01;2019-10-31;5;12;debCAM
220226
2019-11-01;2019-11-30;17;58;debCAM
@@ -272,7 +278,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
272278
2024-03-01;2024-03-31;81;184;debCAM
273279
2024-04-01;2024-04-30;83;422;debCAM
274280
2024-05-01;2024-05-31;98;476;debCAM
275-
2024-06-01;2024-06-26;58;669;debCAM
281+
2024-06-01;2024-06-30;68;716;debCAM
282+
2024-07-01;2024-07-31;71;286;debCAM
283+
2024-08-01;2024-08-31;77;259;debCAM
284+
2024-09-01;2024-09-26;144;368;debCAM
276285
2017-10-01;2017-10-31;2;2;esATAC
277286
2017-11-01;2017-11-30;51;113;esATAC
278287
2017-12-01;2017-12-31;70;126;esATAC
@@ -353,7 +362,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
353362
2024-03-01;2024-03-31;173;270;esATAC
354363
2024-04-01;2024-04-30;209;508;esATAC
355364
2024-05-01;2024-05-31;122;480;esATAC
356-
2024-06-01;2024-06-26;71;611;esATAC
365+
2024-06-01;2024-06-30;85;644;esATAC
366+
2024-07-01;2024-07-31;61;182;esATAC
367+
2024-08-01;2024-08-31;109;190;esATAC
368+
2024-09-01;2024-09-26;176;317;esATAC
357369
2022-04-01;2022-04-30;22;25;fastreeR
358370
2022-05-01;2022-05-31;51;69;fastreeR
359371
2022-06-01;2022-06-30;34;44;fastreeR
@@ -380,7 +392,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
380392
2024-03-01;2024-03-31;86;130;fastreeR
381393
2024-04-01;2024-04-30;110;390;fastreeR
382394
2024-05-01;2024-05-31;128;459;fastreeR
383-
2024-06-01;2024-06-26;65;572;fastreeR
395+
2024-06-01;2024-06-30;78;604;fastreeR
396+
2024-07-01;2024-07-31;89;188;fastreeR
397+
2024-08-01;2024-08-31;95;185;fastreeR
398+
2024-09-01;2024-09-26;108;183;fastreeR
384399
2022-10-01;2022-10-31;1;1;metabinR
385400
2022-11-01;2022-11-30;46;61;metabinR
386401
2022-12-01;2022-12-31;24;36;metabinR
@@ -401,7 +416,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
401416
2024-03-01;2024-03-31;40;61;metabinR
402417
2024-04-01;2024-04-30;63;324;metabinR
403418
2024-05-01;2024-05-31;83;389;metabinR
404-
2024-06-01;2024-06-26;46;526;metabinR
419+
2024-06-01;2024-06-30;53;545;metabinR
420+
2024-07-01;2024-07-31;47;116;metabinR
421+
2024-08-01;2024-08-31;54;101;metabinR
422+
2024-09-01;2024-09-26;81;148;metabinR
405423
2014-10-01;2014-10-31;73;108;paxtoolsr
406424
2014-11-01;2014-11-30;172;261;paxtoolsr
407425
2014-12-01;2014-12-31;151;198;paxtoolsr
@@ -518,7 +536,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
518536
2024-03-01;2024-03-31;105;176;paxtoolsr
519537
2024-04-01;2024-04-30;104;330;paxtoolsr
520538
2024-05-01;2024-05-31;33;91;paxtoolsr
521-
2024-06-01;2024-06-26;122;698;paxtoolsr
539+
2024-06-01;2024-06-30;136;731;paxtoolsr
540+
2024-07-01;2024-07-31;146;372;paxtoolsr
541+
2024-08-01;2024-08-31;182;333;paxtoolsr
542+
2024-09-01;2024-09-26;224;390;paxtoolsr
522543
2023-01-01;2023-01-31;3;3;RBioFormats
523544
2023-02-01;2023-02-28;8;13;RBioFormats
524545
2023-03-01;2023-03-31;12;18;RBioFormats
@@ -536,7 +557,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
536557
2024-03-01;2024-03-31;283;363;RBioFormats
537558
2024-04-01;2024-04-30;183;516;RBioFormats
538559
2024-05-01;2024-05-31;208;553;RBioFormats
539-
2024-06-01;2024-06-26;133;668;RBioFormats
560+
2024-06-01;2024-06-30;155;711;RBioFormats
561+
2024-07-01;2024-07-31;157;279;RBioFormats
562+
2024-08-01;2024-08-31;170;264;RBioFormats
563+
2024-09-01;2024-09-26;147;262;RBioFormats
540564
2011-11-01;2011-11-30;35;64;ReQON
541565
2011-12-01;2011-12-31;29;34;ReQON
542566
2012-01-01;2012-01-31;59;85;ReQON
@@ -688,7 +712,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
688712
2024-03-01;2024-03-31;104;221;ReQON
689713
2024-04-01;2024-04-30;151;381;ReQON
690714
2024-05-01;2024-05-31;20;89;ReQON
691-
2024-06-01;2024-06-26;5;51;ReQON
715+
2024-06-01;2024-06-30;5;55;ReQON
716+
2024-07-01;2024-07-31;16;33;ReQON
717+
2024-08-01;2024-08-31;76;122;ReQON
718+
2024-09-01;2024-09-26;86;144;ReQON
692719
2018-01-01;2018-01-31;4;7;RGMQL
693720
2018-02-01;2018-02-28;11;12;RGMQL
694721
2018-03-01;2018-03-31;13;14;RGMQL
@@ -766,7 +793,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
766793
2024-03-01;2024-03-31;83;137;RGMQL
767794
2024-04-01;2024-04-30;209;613;RGMQL
768795
2024-05-01;2024-05-31;58;394;RGMQL
769-
2024-06-01;2024-06-26;35;553;RGMQL
796+
2024-06-01;2024-06-30;42;576;RGMQL
797+
2024-07-01;2024-07-31;37;126;RGMQL
798+
2024-08-01;2024-08-31;66;159;RGMQL
799+
2024-09-01;2024-09-26;123;235;RGMQL
770800
2019-02-01;2019-02-28;1;1;rmelting
771801
2019-03-01;2019-03-31;21;24;rmelting
772802
2019-04-01;2019-04-30;11;17;rmelting
@@ -831,7 +861,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
831861
2024-03-01;2024-03-31;57;89;rmelting
832862
2024-04-01;2024-04-30;120;393;rmelting
833863
2024-05-01;2024-05-31;101;412;rmelting
834-
2024-06-01;2024-06-26;65;554;rmelting
864+
2024-06-01;2024-06-30;79;586;rmelting
865+
2024-07-01;2024-07-31;58;143;rmelting
866+
2024-08-01;2024-08-31;70;135;rmelting
867+
2024-09-01;2024-09-26;94;234;rmelting
835868
2014-10-01;2014-10-31;60;72;rRDP
836869
2014-11-01;2014-11-30;142;185;rRDP
837870
2014-12-01;2014-12-31;116;146;rRDP
@@ -948,7 +981,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
948981
2024-03-01;2024-03-31;83;142;rRDP
949982
2024-04-01;2024-04-30;109;381;rRDP
950983
2024-05-01;2024-05-31;82;390;rRDP
951-
2024-06-01;2024-06-26;59;578;rRDP
984+
2024-06-01;2024-06-30;74;608;rRDP
985+
2024-07-01;2024-07-31;65;134;rRDP
986+
2024-08-01;2024-08-31;114;205;rRDP
987+
2024-09-01;2024-09-26;187;284;rRDP
952988
2020-03-01;2020-03-31;3;3;sarks
953989
2020-04-01;2020-04-30;27;38;sarks
954990
2020-05-01;2020-05-31;43;90;sarks
@@ -1000,7 +1036,10 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
10001036
2024-03-01;2024-03-31;56;99;sarks
10011037
2024-04-01;2024-04-30;87;357;sarks
10021038
2024-05-01;2024-05-31;80;386;sarks
1003-
2024-06-01;2024-06-26;49;568;sarks
1039+
2024-06-01;2024-06-30;59;597;sarks
1040+
2024-07-01;2024-07-31;62;186;sarks
1041+
2024-08-01;2024-08-31;68;140;sarks
1042+
2024-09-01;2024-09-26;135;244;sarks
10041043
2015-03-01;2015-03-31;3;4;SELEX
10051044
2015-04-01;2015-04-30;55;71;SELEX
10061045
2015-05-01;2015-05-31;80;119;SELEX
@@ -1112,4 +1151,7 @@ start;end;Nb_of_distinct_IPs;Nb_of_downloads;package
11121151
2024-03-01;2024-03-31;91;146;SELEX
11131152
2024-04-01;2024-04-30;92;374;SELEX
11141153
2024-05-01;2024-05-31;91;424;SELEX
1115-
2024-06-01;2024-06-26;45;552;SELEX
1154+
2024-06-01;2024-06-30;60;576;SELEX
1155+
2024-07-01;2024-07-31;127;235;SELEX
1156+
2024-08-01;2024-08-31;109;181;SELEX
1157+
2024-09-01;2024-09-26;193;288;SELEX

0 commit comments

Comments
 (0)