Skip to content

Commit

Permalink
Submission drive (#52)
Browse files Browse the repository at this point in the history
* Call for help

And give credit on mastodon.

* Update pkg versions.
  • Loading branch information
jonthegeek authored Aug 17, 2024
1 parent d99fa19 commit 3e234bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
},
"gert": {
"Package": "gert",
"Version": "2.1.0",
"Version": "2.1.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -246,7 +246,7 @@
"sys",
"zip"
],
"Hash": "bdc909d9f16e2478d615b0e6a7330435"
"Hash": "ab2ca7d6bd706ed218d096b7b16d7233"
},
"gh": {
"Package": "gh",
Expand Down Expand Up @@ -428,13 +428,13 @@
},
"openssl": {
"Package": "openssl",
"Version": "2.2.0",
"Version": "2.2.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"askpass"
],
"Hash": "2bcca3848e4734eb3b16103bc9aa4b8e"
"Hash": "c62edf62de70cadf40553e10c739049d"
},
"pillar": {
"Package": "pillar",
Expand Down
3 changes: 2 additions & 1 deletion runner-shared.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ if (week_num == 1) {
"{emoji::emoji('folder')} https://tidytues.day/{week_year}/{week_date}"
)
status_msg_end <- paste(
"\n\n#RStats #PyData #JuliaLang #DataViz #tidyverse #r4ds",
"\n\nWant to help? https://github.com/rfordatascience/tidytuesday/blob/master/.github/CONTRIBUTING.md",
"\n#RStats #PyData #JuliaLang #DataViz #tidyverse #r4ds",
sep = "\n"
)

Expand Down
10 changes: 10 additions & 0 deletions runner-toot.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@ source("runner-shared.R", local = TRUE)

# Toot.
source("helpers-mastodon.R", local = TRUE)

if (length(metadata$credit$mastodon)) {
credit <- glue::glue(
"Curator: {metadata$credit$mastodon}"
)
if (length(credit) && (nchar(status_msg) + nchar(credit) < 500)) {
status_msg <- paste(credit, status_msg, sep = "\n")
}
}

tt_toot(status_msg, img_paths, alt_text)

0 comments on commit 3e234bb

Please sign in to comment.