Skip to content

Commit 69b5155

Browse files
authored
Merge branch 'main' into maintenance_curation.Rmd-pt-auto
2 parents 73e5e5d + caf6477 commit 69b5155

22 files changed

+259
-194
lines changed

.github/workflows/dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929

3030
- uses: r-lib/actions/setup-r-dependencies@v2
3131
with:
32+
cache-version: 3
3233
extra-packages: local::.
3334

3435
- name: Render book

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
export(translate_page)

R/translate.R

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
#' Function translating one placeholder to actual content
2+
#'
3+
#' Also helps opening the PR
4+
#'
5+
#' @param page_path Path to the placeholder. First create on main,
6+
#' for instance to translate index.Rmd to Portuguese,
7+
#' first create a copy of index.Rmd as index.pt.Rmd on main.
8+
#' @param language Language to which to translate.
9+
#' See [docs of the `source_lang` and `target_lang` API parameters](https://www.deepl.com/docs-api/translate-text).
10+
#' @param glossary Glossary name.
11+
#'
12+
#' @details
13+
#' First follow babeldown docs to set the two environment variables.
14+
#'
15+
#' ```r
16+
#' Sys.setenv("DEEPL_API_URL" = "https://api.deepl.com")
17+
#' Sys.setenv(DEEPL_API_KEY = keyring::key_get("deepl"))
18+
#' ```
19+
#'
20+
#'
21+
#' @return Nothing
22+
#' @export
23+
#'
24+
#' @examples
25+
#' translate_page("index.pt.Rmd", "PT-BR")
126
translate_page <- function(page_path, language, glossary = NULL) {
227
git_branch_name <- sprintf(
328
"%s-%s-auto",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Refer to [this blog post for more details and resources about bookdown deploymen
3232

3333
If you're an associate editor, you can also push directly to `main` for small fixes. We shall use PRs to `main` for discussing larger updates.
3434

35-
If you're an associate editor and you want to render the book locally you need to install `bookdown` and the other dependencies stated in [DESCRIPTION](DESCRIPTION) in particular use `devtools::install_github("bergant/airtabler")`, and [get and store an Airtable API key following their instructions](https://github.com/bergant/airtabler#get-and-store-the-api-key) (if you're not an editor, you don't have access to our Airtable base). Then use `bookdown::render_book('index.Rmd', 'bookdown::gitbook')` and the book will be generated in the `_book` folder; you can open the book on the command line by doing `open _book/index.html`.
35+
If you're an associate editor and you want to render the book locally you need to install Quarto and the other dependencies stated in [DESCRIPTION](DESCRIPTION) in particular use `pak::pak("bergant/airtabler")`, and [get and store an Airtable API key following their instructions](https://github.com/bergant/airtabler#get-and-store-the-api-key) (if you're not an editor, you don't have access to our Airtable base). Then use `bookdown::render_book('index.Rmd', 'bookdown::gitbook')` and the book will be generated in the `_book` folder; you can open the book on the command line by doing `open _book/index.html`.
3636

3737
# Meta
3838

_quarto.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ book:
3838
The third section also features a chapter for anyone wishing
3939
to start contributing to rOpenSci packages.
4040
cover-image: images/cover.png
41-
reader-mode: true
4241
site-url: https://devguide.ropensci.org/
4342
repo-url: https://github.com/ropensci/dev_guide/
4443
repo-actions: [edit, issue]
@@ -99,6 +98,13 @@ format:
9998
include-in-header: "preamble.tex"
10099
output-file: "ropensci-dev-guide"
101100
babelquarto:
101+
languagecodes:
102+
- name: es
103+
text: "Español"
104+
- name: en
105+
text: "English"
106+
- name: pt
107+
text: "Português"
102108
mainlanguage: en
103109
languages: ['es', 'pt']
104110
title-pt: title in pt

booknews.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## dev (0.9.0)
44

5+
- 2024-01-09, update roxygen2 wording (`@vincentvanhees`, #792).
6+
57
- 2023-12-15, update roxygen2 advice, mainly linking to roxygen2 website (#750).
68

79
- 2023-09-15, add suggestions for API packages (#496).

index.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ u <- "https://zenodo.org/record/2553043" # universal URL redirects to latest
1414
s <- rvest::session(u)
1515
u <- paste0(s$url, "/export/bibtex") # redirected
1616
out <- rvest::read_html(u)
17-
bibentry <- rvest::html_text(rvest::html_element(out, "pre"))
17+
bibentry <- rvest::html_text(out)
1818
cat(bibentry)
1919
cat("\n```\n")
2020
```

maintenance_collaboration.pt.Rmd

Lines changed: 85 additions & 85 deletions
Large diffs are not rendered by default.

maintenance_marketing.Rmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ aliases:
1010
We will help you promoting your package but here are some more things to keep in mind.
1111
```
1212

13-
- If you hear of an use case of your package, please encourage its author to post the link to our [discussion forum in the Use Cases category](https://discuss.ropensci.org/c/usecases), [for a tweet from rOpenSci and possible inclusion in the rOpenSci biweekly newsletter](https://discuss.ropensci.org/t/about-the-usecases-category/33). We also recommend you to add a link to the use case in a "use cases in the wild" section of your README.
13+
- If you hear of an use case of your package, please encourage its author to post the link to our [discussion forum in the Use Cases category](https://discuss.ropensci.org/c/usecases), [for a toot (Mastodon post) from rOpenSci and inclusion in the rOpenSci monthly newsletter](https://discuss.ropensci.org/t/about-the-usecases-category/33). We also recommend you to add a link to the use case in a "use cases in the wild" section of your README.
14+
15+
- Post about your package on Mastodon using the "#rstats" hashtag and tag rOpenSci! This might help with contributor/user engagement. Example posts from rOpenSci itself: [A package a day](hachyderm.io/@rOpenSci/111611705648653729), [Help wanted post](hachyderm.io/@rOpenSci/111460729804231877), [Use cases](hachyderm.io/@rOpenSci/111371091053569287), [Welcome post]( hachyderm.io/@rOpenSci/111342069863172097).
1416

1517
- When you [release](#releasing) a new version of your package or release it to CRAN for the first time,
1618

1719
- Make a pull request to [R Weekly](https://github.com/rweekly/rweekly.org) with a line about the release under the "New Releases" section (or "New Packages" for the first GitHub/CRAN release).
1820

19-
- Tweet about it using the "#rstats" hashtag and tag rOpenSci! This might help with contributor/user engagement. [Example](https://twitter.com/opencpu/status/1003934871830622208).
21+
- Post about it on social media.
2022

2123
- Consider submitting a short post about the release to [rOpenSci tech notes](https://ropensci.org/technotes/). Contact rOpenSci Community Manager, (e.g. via Slack or [[email protected]](mailto:[email protected])). Refer to [the guidelines about contributing a blog post](https://blogguide.ropensci.org)).
2224

23-
- Submit your package to lists of packages such as [CRAN Task Views](https://cran.r-project.org/web/views/), and [rOpenSci non-CRAN Task Views](https://github.com/search?utf8=%E2%9C%93&q=user%3Aropensci+%22task+view%22&type=Repositories&ref=searchresults).
25+
- Submit your package to lists of packages such as [CRAN Task Views](https://cran.r-project.org/web/views/).
2426

2527
- If you choose to market your package by giving a talk about it at a meetup or conference (excellent idea!)
2628
read [this article of Jenny Bryan's and Mara Averick's](https://www.tidyverse.org/articles/2018/07/carpe-talk/).

maintenance_marketing.es.Rmd

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ repo-actions: true
66

77
```{block, type="summaryblock"}
88
Te ayudaremos a promocionar tu paquete, pero aquí hay algunas cosas más para tener en cuenta.
9-
```
109
11-
- Si te enteras de un caso de uso de tu paquete, anima a quien lo escribió a publicar el enlace en nuestro [foro de debate en la categoría Casos de uso](https://discuss.ropensci.org/c/usecases), [para recibir un tweet de rOpenSci y su posible inclusión en el boletín quincenal de rOpenSci](https://discuss.ropensci.org/t/about-the-usecases-category/33).
10+
- Si te enteras de un caso de uso de tu paquete, anima a quien lo escribió a publicar el enlace en nuestro [foro de debate en la categoría Casos de uso](https://discuss.ropensci.org/c/usecases), [para recibir un toot (mensaje en Mastodon) de rOpenSci y su posible inclusión en el boletín mensual de rOpenSci](https://discuss.ropensci.org/t/about-the-usecases-category/33).
1211
También te recomendamos que añadas un enlace al caso de uso en la sección "casos de uso reales" de tu archivo *README*.
1312
1413
- Cuando [publiques](#releasing) una nueva versión de tu paquete o lo publiques en CRAN por primera vez,
1514
15+
- Comparte sobre el paquete en Mastodon utilizando el hashtag "#rstats" y etiqueta a rOpenSci!
16+
Esto puede ayudar llegar a gente que pueda colaborar o usar el paquete.
17+
Ejemplos enviados desde rOpenSci mismo: ["A package a day" (un paquete al dia)](hachyderm.io/@rOpenSci/111611705648653729), [Help wanted (se necesita ayuda)](hachyderm.io/@rOpenSci/111460729804231877), [Use case (caso de uso)](hachyderm.io/@rOpenSci/111371091053569287), [Welcome post (mensaje de bienvenida)]( hachyderm.io/@rOpenSci/111342069863172097).
18+
1619
- haz un *pull request* a [R Weekly](https://github.com/rweekly/rweekly.org) con una mensaje sobre la versión en la sección "*New Releases*" (o "*New Packages*" para la primera versión de GitHub/CRAN).
1720
18-
- ¡Tuitea sobre ello utilizando el hashtag "#rstats" y etiqueta a rOpenSci!
19-
Esto puede ayudar llegar a gente que pueda colaborar o usar el paquete.
20-
[Por ejemplo](https://twitter.com/opencpu/status/1003934871830622208).
21+
- Comparte en tus redes sociales.
2122
2223
- Considera enviar un breve artículo sobre el lanzamiento a [rOpenSci tech notes](https://ropensci.org/technotes/).
2324
Ponte en contacto con la persona encargada de gestionar la comunidad de rOpenSci, (por ejemplo, a través de Slack o [[email protected]](mailto:[email protected])).
2425
Consulta [las recomendaciones sobre cómo contribuir con un artículo en el blog](https://blogguide.ropensci.org)).
2526
26-
- Envía tu paquete a listas de paquetes como [*CRAN Task Views*](https://cran.r-project.org/web/views/), y [rOpenSci non-CRAN Task Views](https://github.com/search?utf8=%E2%9C%93&q=user%3Aropensci+%22task+view%22&type=Repositories&ref=searchresults).
27+
- Envía tu paquete a listas de paquetes como [*CRAN Task Views*](https://cran.r-project.org/web/views/).
2728
2829
- Si decides promocionar tu paquete dando una charla sobre él en una reunión o conferencia (¡excelente idea!) lee en [este artículo de Jenny Bryan y Mara Averick (en inglés)](https://www.tidyverse.org/articles/2018/07/carpe-talk/).
2930

0 commit comments

Comments
 (0)