/
index.Rmd
688 lines (568 loc) · 25.2 KB
/
index.Rmd
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
---
title: 'rOpenSci News Digest, March 2024'
author: 'The rOpenSci Team'
date: '2024-03-29'
tags:
- newsletter
slug: ropensci-news-march-2024
description: Leadership changes at rOpenSci, multilingual dev guide, new packages and package news
params:
last_newsletter: "2024-02-23"
---
```{r setup, include=FALSE}
library("magrittr")
library("rlang")
last_newsletter <- anytime::anytime(params$last_newsletter)
knitr::opts_chunk$set(echo = FALSE)
url <- sprintf(
"/blog/%s/%s/%s/%s",
lubridate::year(rmarkdown::yaml_front_matter(knitr::current_input())$date),
stringr::str_pad(lubridate::month(rmarkdown::yaml_front_matter(knitr::current_input())$date), 2, "0", side = "left"),
stringr::str_pad(lubridate::day(rmarkdown::yaml_front_matter(knitr::current_input())$date), 2, "0", side = "left"),
rmarkdown::yaml_front_matter(knitr::current_input())$slug
)
english <- function(x) {
as.character(english::english(x))
}
nice_string <- function(...) {
if (length(...) == 2) {
return(paste(c(...), collapse = " and "))
}
glue::glue_collapse(..., sep = ", ", last = ", and ")
}
```
<!-- Before sending DELETE THE INDEX_CACHE and re-knit! -->
Dear rOpenSci friends, it's time for our monthly news roundup!
<!-- blabla -->
You can read this post [on our blog](`r url`).
Now let's dive into the activity at and around rOpenSci!
## rOpenSci HQ
### Leadership changes at rOpenSci
After 13 years at the helm of rOpenSci, our founding executive director Karthik Ram is stepping down.
Noam Ross, rOpenSci's current lead for peer review, will be our new Executive Director.
Karthik will remain a key advisor to rOpenSci.
We thank him for his years of leadership and service to the community!
Read [Karthik's farewell post](/blog/2024/03/29/from-the-founding-director-my-farewell-to-ropensci/), and [Noam's post about his new role](/blog/2024/03/29/hello-from-our-new-executive-director/) on our blog
### rOpenSci Dev Guide 0.9.0: Multilingual Now! And Better
We're delighted to announce we've released a new version of our guide,
["rOpenSci Packages: Development, Maintenance, and Peer Review"](https://devguide.ropensci.org/)!
A highlight is that our guide is now bilingual (English and [Spanish](https://devguide.ropensci.org/es/index.es.html)), thanks to work by [Yanina Bellini Saibene](/author/yanina-bellini-saibene/), [Elio Campitelli](/author/elio-campitelli/) and [Pao Corrales](/author/pao-corrales/), and thanks to [support of the Chan Zuckerberg Initiative, NumFOCUS, and the R Consortium](/blog/2023/01/12/multilingual-publishing-en/).
[Read the guide in Spanish](https://devguide.ropensci.org/es/index.es.html).
Our guide is now also getting translated to [Portuguese](/blog/2023/10/20/news-october-2023/#help-us-translate-our-dev-guide-to-portuguese) thanks to volunteers.
We are very grateful for their work!
Read more in the [blog post about the release](/blog/2024/03/11/devguide-0.9.0/).
Thanks to all contributors who made this release possible.
### Interview with Code for Thought podcast
Our community manager, Yanina Bellini Saibene, talked with Peter Schmidt of the [Code for Thought podcast](https://codeforthought.buzzsprout.com/1326658/14660478-en-crossing-the-language-barrier-yanina-saibene), about the importance of making computing materials accessible to non-English speaking learners.
Listen to the [episode](https://codeforthought.buzzsprout.com/1326658/14660478-en-crossing-the-language-barrier-yanina-saibene).
Find our more about [rOpenSci multilingual publishing project](/multilingual-publishing/).
### Coworking
Read [all about coworking](/blog/2023/06/21/coworking/)!
Join us for social coworking & office hours monthly on first Tuesdays!
Hosted by Steffi LaZerte and various community hosts.
Everyone welcome.
No RSVP needed.
Consult our [Events](/events) page to find your local time and how to join.
- [Tuesday, April 2nd, 14:00 Europe Central (13:00 UTC)](/events/coworking-2024-04), Sharing your work with Quarto. With cohost [Pao Corrales](/author/pao-corrales) and [Steffi LaZerte](/author/steffi-lazerte).
- Explore the Quarto documentation and examples
- Use Quarto to share some of your code
- Ask questions or troubleshoot your Quarto problems with the cohost and other attendees.
- [Tuesday, May 7th, 09:00 Americas Pacific (16:00 UTC)](/events/coworking-2024-05), Meet rOpenSci's new Executive Director! With cohost [Noam Ross](/author/noam-ross) and [Steffi LaZerte](/author/steffi-lazerte).
- Learn more about rOpenSci!
- Explore rOpenSci [packages](/packages) and [contributing guide](https://contributing.ropensci.org/)
- Ask questions or chat about rOpensci with Noam and other attendees.
And remember, you can always cowork independently on work related to R, work on packages that tend to be neglected, or work on what ever you need to get done!
## Software :package:
### New packages
```{r new-packages, cache = TRUE}
cran_unquote <- function(string) {
gsub("\\'(.*?)\\'", "\\1", string)
}
tidy_package <- function(entry) {
tibble::tibble(
package = entry$name,
description = cran_unquote(entry$description),
details = cran_unquote(entry$details),
on_cran = entry$on_cran,
on_bioc = entry$on_bioc,
onboarding = entry$onboarding,
url = entry$url,
maintainer = entry$maintainer # use desc for more info
)
}
registry <- "https://raw.githubusercontent.com/ropensci/roregistry/gh-pages/registry.json" %>%
jsonlite::read_json() %>%
purrr::pluck("packages") %>%
purrr::map_df(tidy_package)
since <- lubridate::as_date(last_newsletter) - 1
until <- lubridate::as_date(last_newsletter) + 1
commits <- gh::gh(
"GET /repos/{owner}/{repo}/commits",
owner = "ropensci",
repo = "roregistry",
since = sprintf(
"%s-%s-%sT00:00:00Z",
lubridate::year(since),
stringr::str_pad(lubridate::month(since), 2, "0", side = "left"),
stringr::str_pad(lubridate::day(since), 2, "0", side = "left")
),
until = sprintf(
"%s-%s-%sT00:00:00Z",
lubridate::year(until),
stringr::str_pad(lubridate::month(until), 2, "0", side = "left"),
stringr::str_pad(lubridate::day(until), 2, "0", side = "left")
)
)
empty <- TRUE
i <- length(commits)
while (empty == TRUE) {
old <- "https://raw.githubusercontent.com/ropensci/roregistry/%s/packages.json" %>%
sprintf(commits[[i]]$sha) %>%
jsonlite::read_json() %>%
purrr::map_df(function(x) tibble::tibble(package = x$package, url = x$url, branch = x$branch))
i <- i - 1
if (nrow(old) > 100) {
empty <- FALSE
}
}
old <- dplyr::filter(
old,
!grepl("ropenscilabs\\/", url),
!grepl("ropensci-archive\\/", url)
)
new <- dplyr::filter(
registry,
!package %in% c("rvertnet", old$package),
!grepl("ropenscilabs\\/", url),
!grepl("ropensci-archive\\/", url)
)
```
The following `r if(nrow(new)>1) english(nrow(new))` package`r if(nrow(new)>1) "s"` recently became a part of our software suite, or were recently reviewed again:
```{r, results='asis', cache = TRUE}
packages <- split(new, seq(nrow(new)))
present_one <- function(package) {
url_parts <- urltools::url_parse(package$url)
desc_link <- gh::gh(
"/repos/{owner}/{repo}/contents/{path}",
owner = strsplit(url_parts$path, "\\/")[[1]][1],
repo = strsplit(url_parts$path, "\\/")[[1]][2],
path = "DESCRIPTION"
) %>%
purrr::pluck("download_url")
withr::with_tempfile(
"tf", {
download.file(desc_link, tf)
desc <<- desc::desc(file = tf)
}
)
# as in pkgdown
authors <- unclass(desc$get_authors())
aut <- purrr::keep(authors, function(x) {any( x$role %in% "aut") && all(x$role != "cre") })
aut <- purrr::map_chr(aut, function(x) paste(x$given, x$family))
rev <- purrr::keep(authors, function(x) {any( x$role %in% "rev") && all(x$role != "cre") })
rev <- purrr::map_chr(rev, function(x) paste(x$given, x$family))
maintainer <- purrr::keep(authors, function(x) {any( x$role %in% "cre") })
maintainer <- paste(c(maintainer[[1]]$given, maintainer[[1]]$family), collapse = " ")
author_string <- sprintf("developed by %s", maintainer)
if (length(aut) > 0) {
author_string <- paste0(author_string, sprintf(" together with %s", nice_string(aut)))
}
string <- sprintf(
"[%s](https://docs.ropensci.org/%s), %s: %s. ",
package$package,
package$package,
author_string,
sub(
"DPIRD weather data are accessed.*",
"",
stringr::str_remove(stringr::str_squish(package$details), "\\.$")
)
)
if (package$on_cran) {
string <- paste0(
string,
sprintf(
" It is available on [CRAN]( https://CRAN.R-project.org/package=%s). ",
package$package
)
)
}
if (package$on_bioc) {
string <- paste0(
string, sprintf(
" It is available on [Bioconductor](https://bioconductor.org/packages/%s/). ",
package$package
)
)
}
if (nzchar(package$onboarding)) {
string <-
sub(
"\\. \\. ",
". ",
paste0(string, sprintf("It has been [reviewed](%s)", package$onboarding))
)
if (length(rev) > 0) {
string <- paste0(string, sprintf(" by %s.", nice_string(rev)))
} else {
if (package$package == "wmm") {
string <- paste0(string, " by Athanasia Monika Mowinckel and Rohit Goswami.")
} else if (package$package == "birdsize") {
string <- paste0(string, " by Quentin Read and Matt Strimas-Mackey.")
} else if (package$package == "naijR") {
string <- paste0(string, " by Margaret Siple and Alican Cagri Gokcek.")
} else {
string <- paste0(string, ".")
}
}
}
paste("+", string)
}
text <- purrr::map_chr(
packages,
present_one
)
cat(paste0(text, collapse = "\n\n"))
```
Discover [more packages](/packages), read more about [Software Peer Review](/software-review).
### New versions
```{r news, cache=TRUE}
registry <- dplyr::filter(
registry,
!grepl("ropenscilabs\\/", url),
!grepl("ropensci-archive\\/", url)
)
registry <- registry %>%
dplyr::rowwise() %>%
dplyr::mutate(
owner = strsplit(urltools::path(url), "/")[[1]][1],
repo = strsplit(urltools::path(url), "/")[[1]][2]
) %>%
dplyr::filter(
!is.na(owner)
)
packages <- split(registry, seq(nrow(registry)))
get_release <- function(repo) {
info <- gh::gh(
"GET /repos/{owner}/{repo}/releases",
owner = repo$owner,
repo = repo$repo,
per_page = 3,
description = repo$description
)
info <- info[!purrr::map_lgl(info, "draft")]
if(length(info) == 0 || anytime::anytime(info[[1]]$published_at) < last_newsletter) {
return(NULL)
}
tibble::tibble(
package = repo$package,
version = info[[1]]$tag_name,
url = info[[1]]$html_url,
description = repo$description
)
}
packages[purrr::map_chr(packages, "package") == "gert"][[1]]$owner <- "r-lib"
packages[purrr::map_chr(packages, "package") == "gert"][[1]]$repo <- "gert"
packages[purrr::map_chr(packages, "package") == "credentials"][[1]]$owner <- "r-lib"
packages[purrr::map_chr(packages, "package") == "credentials"][[1]]$repo <- "credentials"
packages[purrr::map_chr(packages, "package") == "commonmark"][[1]]$owner <- "r-lib"
packages[purrr::map_chr(packages, "package") == "commonmark"][[1]]$repo <- "commonmark"
releases <- purrr::map_df(
packages,
get_release
)
releases <- split(releases, seq(nrow(releases)))
format_release <- function(release) {
sprintf(
'[%s](https://docs.ropensci.org/%s "%s") ([`%s`](%s))',
release$package,
release$package,
release$description,
release$version,
release$url
)
}
all_releases <- purrr::map_chr(releases, format_release)
text <- nice_string(all_releases)
```
The following `r if (length(releases) > 1) english(length(releases))` package`r if (length(releases) > 1) "s"` `r if (length(releases) > 1) "have" else "has"` had an update since the last newsletter: `r text`.
## Software Peer Review
```{r software-review, results='asis'}
# from pkgdown https://github.com/r-lib/pkgdown/blob/1ca166905f1b019ed4af9642617ea09fa2b8fc17/R/utils.r#L176
get_description <- function(body) {
lines <- strsplit(body, "\n")[[1]]
name <- stringr::str_squish(sub("Package:", "", lines[grepl("^Package", lines)][1]))
description <- stringr::str_squish(sub("Title:", "", lines[grepl("^Title", lines)][1]))
description <- cran_unquote(sub("\\.$", "", description))
list(name = name, description = description)
}
get_user_text <- function(issue) {
info <- gh::gh("GET /users/{username}", username = issue$user$login)
name <- info$name %||% issue$user$login
url <- if (nzchar(info$blog)) info$blog else info$html_url
if (!grepl("^https?:", url)) url <- paste0("http://", url)
if (url == "https://wwww.researchgate.net/profile/Kristof_Haneca") url <- "https://www.researchgate.net/profile/Kristof_Haneca"
if (url == "https://www.surfaces.co.il") url <- "https://github.com/micha-silver"
if (url == "http://csaybar.github.io") url <- "https://csaybar.github.io"
sprintf("[%s](%s)", name, url)
}
tidy_issue <- function(issue) {
labels <- purrr::map_chr(issue$labels, "name")
label <- labels[grepl("[0-9]\\/.*", labels)][1]
df <- tibble::tibble(
label = label,
name = get_description(issue$body)$name,
description = get_description(issue$body)$description,
title = issue$title,
holding = "holding" %in% purrr::map_chr(issue$labels, "name"),
others = toString(purrr::map_chr(issue$labels, "name")),
closed_at = issue$closed_at %||% NA,
url = issue$html_url,
user = get_user_text(issue),
stats = dplyr::if_else("stats" %in% purrr::map_chr(issue$labels, "name"), " (Stats).", "")
)
dplyr::rowwise(df) %>%
dplyr::mutate(text = sprintf(" * [%s](%s), %s. Submitted by %s. %s", name, url, description, user, stats))
}
get_issues <- function(label, state) {
issues <- gh::gh(
"GET /repos/{owner}/{repo}/issues",
owner = "ropensci",
repo = "software-review",
state = state,
labels = label
)
purrr::map_df(issues, tidy_issue)
}
active_issues <- purrr::map_df(
c("1/editor-checks","2/seeking-reviewer(s)","3/reviewer(s)-assigned","4/review(s)-in-awaiting-changes","5/awaiting-reviewer(s)-response","6/approved"),
get_issues,
state = "open"
)
closed_issues <- get_issues(state = "closed", label ="6/approved")
ok_date <- function(date) {
if (is.na(date)) {
return(TRUE)
}
anytime::anytime(date) >= last_newsletter
}
closed_issues <- dplyr::rowwise(closed_issues) %>%
dplyr::filter(ok_date(closed_at))
issues <- dplyr::bind_rows(active_issues, closed_issues)
no_holding <- sum(issues$holding)
issues <- dplyr::filter(issues, !holding)
text <- sprintf("There are %s recently closed and active submissions", english(nrow(issues)))
if (no_holding > 0) {
text <- paste0(
text,
sprintf(
" and %s submission%s on hold.",
no_holding,
if (no_holding > 1) "s" else ""
)
)
} else {
text <- paste0(text, ".")
}
count_label <- function(label) {
no <- snakecase::to_sentence_case(english(sum(issues$label == label, na.rm = TRUE)))
url <- paste0("https://github.com/ropensci/software-review/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A", label)
sprintf("* %s at ['%s'](%s):\n\n %s", no, label, url, paste0(issues$text[!is.na(issues$label)][ issues$label == label], collapse = "\n\n"))
}
cat(text)
cat(
paste0(
" Issues are at different stages: \n\n",
paste0(
purrr::map_chr(sort(unique(issues$label[!is.na(issues$label)]), decreasing = TRUE), count_label),
collapse = "\n\n"
)
)
)
```
Find out more about [Software Peer Review](/software-review) and how to get involved.
## On the blog
<!-- Do not forget to rebase your branch! -->
```{r blog}
parse_one_post <- function(path){
lines <- suppressWarnings(readLines(path, encoding = "UTF-8"))
yaml <- blogdown:::split_yaml_body(lines)$yaml
yaml <- glue::glue_collapse(yaml, sep = "\n")
yaml <- yaml::yaml.load(yaml)
language <- function(path) {
name <- fs::path_ext_remove(fs::path_file(path))
if (grepl("\\.[a-z][a-z]", name)) {
sub(".*\\.", "", name)
} else {
"en"
}
}
software_peer_review <- "Software Peer Review" %in% yaml$tags
tech_note <- "tech notes" %in% yaml$tags && !software_peer_review
other <- !software_peer_review && !tech_note
meta <- tibble::tibble(
date = anytime::anydate(yaml$date),
author = nice_string(yaml$author),
title = yaml$title,
software_peer_review = software_peer_review,
tech_note = tech_note,
other = other,
socialImg = yaml$socialImg %||% "",
socialAlt = yaml$socialAlt %||% "",
description = stringr::str_squish(yaml$description %||% ""),
newsletter = "newsletter" %in% yaml$tags,
slug = yaml$slug,
dir = fs::path_dir(path),
language = language(path)
)
post_url <- if (meta[["language"]] == "en") {
sprintf(
"/blog/%s/%s/%s/%s",
lubridate::year(meta$date),
stringr::str_pad(lubridate::month(meta$date), 2, "0", side = "left"),
stringr::str_pad(lubridate::day(meta$date), 2, "0", side = "left"),
meta$slug
)
} else {
sprintf(
"/%s/blog/%s/%s/%s/%s",
meta[["language"]],
lubridate::year(meta$date),
stringr::str_pad(lubridate::month(meta$date), 2, "0", side = "left"),
stringr::str_pad(lubridate::day(meta$date), 2, "0", side = "left"),
meta$slug
)
}
meta$url <- post_url
meta
}
paths <- fs::dir_ls("..", recurse = TRUE, glob = "*.md")
paths <- paths[!paths %in% c("../_index.md", "../2021-02-03-targets/raw_data_source.md",
"../2021-02-03-targets/README.md")]
posts <- purrr::map_df(paths, parse_one_post)
posts <- dplyr::filter(posts, date >= as.Date(last_newsletter), !newsletter)
posts <- split(posts, posts[["dir"]])
format_post <- function(dir) {
main_language <- if (any(dir[["language"]] == "en")) {
"en"
} else {
dir[["language"]][[1]]
}
post <- dir[which(dir[["language"]] == main_language),]
string <- sprintf("* [%s](%s) by %s", post$title, post$url, post$author)
if (post$description != "") {
if (post$title != "R-universe now builds MacOS ARM64 binaries for use on Apple Silicon (aka M1/M2/M3) systems") {
string <- paste0(string, ". ", sub("\\?$", "", sub("\\!$", "", sub("\\.$", "", post$description), ".")), ".")
}
} else {
string <- paste0(string, ".")
}
if (post$title == "Marketing Ideas For Your Package") {
string <- paste0(
string,
" This post was discussed on the [R Weekly highlights podcast](https://rweekly.fireside.fm/156) hosted by Eric Nantz and Mike Thomas.")
}
if (post$title == "Beautiful Code, Because We’re Worth It!") {
string <- paste0(string, " This post was featured in the [R Weekly Highlights podcast](https://rweekly.fireside.fm/154?t=1338) hosted by Eric Nantz and Mike Thomas.")
}
if (post$socialImg != "") {
img_file <- fs::path_file(post$socialImg)
download.file(sprintf("https://ropensci.org/%s", post$socialImg), img_file)
img_file %>% magick::image_read() %>% magick::image_scale("400x") %>% magick::image_write(img_file)
string <- paste0(
string,
sprintf('{{< figure src="%s" alt="%s" width="400" >}}\n\n', img_file, post$socialAlt)
)
}
other_langs <- dir[which(dir[["language"]] != main_language),]
other_langs <- split(other_langs, sort(as.numeric(rownames(other_langs))))
if (length(other_langs) > 0) {
other_langs_text <- purrr::map_chr(
other_langs,
~ sprintf("<a href='%s' lang='%s'>%s (%s)</a>", .x[["url"]], .x[["language"]], .x[["title"]], .x[["language"]])
) %>%
toString
other_langs_text <- sprintf("Other languages: %s.", other_langs_text)
string <- sprintf("%s %s", string, other_langs_text)
}
string
}
```
```{r, results='asis'}
software_review <- posts[purrr::map_lgl(posts, ~any(.x[["software_peer_review"]]))]
if (length(software_review) > 0) {
cat("### Software Review\n\n")
cat(
paste0(
purrr::map_chr(software_review, format_post),
collapse = "\n\n"
)
)
cat("\n\n")
}
others <- posts[purrr::map_lgl(posts, ~any(.x[["other"]]))]
if (length(others) > 0) {
cat(
paste0(
purrr::map_chr(others, format_post),
collapse = "\n\n"
)
)
cat("\n\n")
}
tech_notes <- posts[purrr::map_lgl(posts, ~any(.x[["tech_note"]]))]
if (length(tech_notes) > 0) {
cat("\n\n")
cat("### Tech Notes\n\n")
cat(
paste0(
purrr::map_chr(tech_notes, format_post),
collapse = "\n\n"
)
)
cat("\n\n")
}
```
## Calls for contributions
### Calls for maintainers
If you're interested in maintaining any of the R packages below, you might enjoy reading our blog post [What Does It Mean to Maintain a Package?](/blog/2023/02/07/what-does-it-mean-to-maintain-a-package/).
* [internetarchive](https://docs.ropensci.org/internetarchive/), an API Client for the Internet Archive. [Issue for volunteering](https://github.com/ropensci/internetarchive/issues/17).
* [historydata](https://docs.ropensci.org/historydata/), datasets for historians. [Issue for volunteering](https://github.com/ropensci/historydata/issues/23).
* [textreuse](https://docs.ropensci.org/textreuse/), detect text reuse and document similarity. [Issue for volunteering](https://github.com/ropensci/textreuse/issues/97).
* [USAboundaries](https://docs.ropensci.org/USAboundaries/) (and USAboundariesdata), historical and contemporary boundaries of the United States of America . [Issue for volunteering](https://github.com/ropensci/USAboundaries/issues/50).
### Calls for contributions
* [Help make qualtRics better! Code contributions wanted](/blog/2024/03/01/qualtrics-call-help/)
* [Help make assertr better! Come close issues](/blog/2024/02/27/assertr-call-help/)
* [Help users and developers of targets by answering questions!](/blog/2024/02/29/targets-call-help/)
* [Help make waywiser better! User requests wanted](/blog/2024/02/19/waywiser-call-help/)
Also refer to our [help wanted page](/help-wanted/) -- before opening a PR, we recommend asking in the issue whether help is still needed.
## Package development corner
Some useful tips for R package developers. :eyes:
### Reminder: R Consortium Infrastructure Steering Committee (ISC) Grant Program Accepting Proposals until April 1st!
The R Consortium Call for Proposal might be a relevant funding opportunity for your package!
Find out more in their [post](https://www.r-consortium.org/blog/2024/02/08/r-consortium-infrastructure-steering-committee-isc-grant-program-accepting-proposals-starting-march-1st).
If you can't prepare your proposal in time, the next call will start [September 1st](https://www.r-consortium.org/all-projects/call-for-proposals).
### `@examplesIf` for conditional examples in package manuals
Do you know you can make some examples of your package manual conditional on, say, the session being interactive?
The [`@examplesIf` roxygen2 tag](https://roxygen2.r-lib.org/articles/rd.html?q=examplesIf#examples) is really handy.
What's more, inside the examples of a single manual page, you can seamlessly mix and match `@examples` and `@examplesIf` pieces.
### 'argument "..2" is missing, with no default'
Mike Mahoney [posted an important PSA on Mastodon](https://fosstodon.org/@MikeMahoney218/112044613555056993):
> if you're getting a new error message 'argument "..2" is missing, with no default' on #rstats 4.3.3, it's likely because you have a trailing comma in a call to `glue::glue()`
> seeing this pop up in a few Slacks so figured I'd share
> https://github.com/tidyverse/glue/issues/320
Thanks, Mike!
### Useful hack: a CRAN-specific .Rbuildignore
The [`.Rbuildignore` file](https://blog.r-hub.io/2020/05/20/rbuildignore/) lists the files to not be included when building your package, such as your pkgdown configuration file.
Trevor L. Davis posted a neat idea on [Mastodon](https://mastodon.social/deck/@trevorld@fosstodon.org/112012986709303927): using a CRAN-specific `.Rbuildignore`, so that CRAN submissions omit some tests and vignettes to keep the package under the size limit.
Regarding tests themselves, remember you can [skip some or all](https://books.ropensci.org/http-testing/cran-preparedness.html#skipping-a-few-tests-on-cran) on CRAN (but make sure you're running them on [continuous integration](https://devguide.ropensci.org/pkg_ci.html)!).
### Key advantages of using the keyring package
If your package needs the user to provide secrets, like API tokens, to work, you might be interested in wrapping or recommending the keyring package (maintained by Gábor Csárdi), that accesses the system credential store from R.
See this recent [R-hub blog post](https://blog.r-hub.io/2024/02/28/key-advantages-of-using-keyring/).
### A package for linting roxygen2 documentation
The compelling [roxylint package](https://openpharma.github.io/roxylint/) by Doug Kelkhoff allows you to check some aspects of your roxygen2 docs, such as the use of full stops and sentence case.
See the [list of current rules](https://openpharma.github.io/roxylint/reference/linters.html#functions).
## Last words
Thanks for reading! If you want to get involved with rOpenSci, check out our [Contributing Guide](https://contributing.ropensci.org) that can help direct you to the right place, whether you want to make code contributions, non-code contributions, or contribute in other ways like sharing use cases.
You can also support our work through [donations](/donate).
If you haven't subscribed to our newsletter yet, you can [do so via a form](/news/). Until it's time for our next newsletter, you can keep in touch with us via our [website](/) and [Mastodon account](https://hachyderm.io/@rOpenSci).