Skip to content

Commit a4aff13

Browse files
authored
Rename default (#38)
* Update "master" references. * Use new tidytuesday default branch.
1 parent 8739169 commit a4aff13

File tree

11 files changed

+24
-21
lines changed

11 files changed

+24
-21
lines changed

.github/workflows/check-standard.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main]
66
paths-ignore:
77
- .github/workflows/update_datasets.yaml
88
pull_request:
9-
branches: [main, master]
9+
branches: [main]
1010
paths-ignore:
1111
- .github/workflows/update_datasets.yaml
1212

@@ -33,7 +33,7 @@ jobs:
3333
R_KEEP_PKG_SOURCE: yes
3434

3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
3737

3838
- uses: r-lib/actions/setup-pandoc@v2
3939

.github/workflows/pkgdown.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main]
66
paths-ignore:
77
- .github/workflows/update_datasets.yaml
88
pull_request:
9-
branches: [main, master]
9+
branches: [main]
1010
paths-ignore:
1111
- .github/workflows/update_datasets.yaml
1212
release:
@@ -26,7 +26,7 @@ jobs:
2626
permissions:
2727
contents: write
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030

3131
- uses: r-lib/actions/setup-pandoc@v2
3232

.github/workflows/pr-commands.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- uses: r-lib/actions/pr-fetch@v2
2020
with:
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5353
steps:
54-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5555

5656
- uses: r-lib/actions/pr-fetch@v2
5757
with:

.github/workflows/test-coverage.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main]
66
paths-ignore:
77
- .github/workflows/update_datasets.yaml
88
pull_request:
9-
branches: [main, master]
9+
branches: [main]
1010
paths-ignore:
1111
- .github/workflows/update_datasets.yaml
1212
workflow_dispatch:
@@ -20,7 +20,7 @@ jobs:
2020
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424

2525
- uses: r-lib/actions/setup-r@v2
2626
with:
@@ -49,7 +49,7 @@ jobs:
4949

5050
- name: Upload test results
5151
if: failure()
52-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
5353
with:
5454
name: coverage-test-failures
5555
path: ${{ runner.temp }}/package

.github/workflows/update_datasets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
GITHUB_PAT: ${{ secrets.GH_PAT }}
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
ref: main
1919
token: ${{ env.GITHUB_PAT }}

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ttmeta
22
Title: TidyTuesday Dataset Metadata
3-
Version: 0.1.0.20241125
3+
Version: 0.1.0.20241129
44
Authors@R:
55
person("Jon", "Harmon", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-4781-4346"))

R/sysdata.rda

8 Bytes
Binary file not shown.

data-raw/internal.R

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
library(ttmeta)
1+
pkgload::load_all(helpers = FALSE, attach_testthat = FALSE)
22

3-
.tt_gh_base <- "https://github.com/rfordatascience/tidytuesday/blob/master/"
4-
5-
tt_summary_tbl <- get_tt_tbl()
6-
tt_datasets_metadata <- get_tt_datasets_metadata(tt_summary_tbl)
7-
tt_urls_tbl <- parse_tt_urls(tt_summary_tbl)
3+
.tt_gh_base <- "https://github.com/rfordatascience/tidytuesday/blob/main/"
84

95
usethis::use_data(
106
.tt_gh_base,
@@ -13,6 +9,14 @@ usethis::use_data(
139
compress = "xz"
1410
)
1511

12+
rm(.tt_gh_base)
13+
14+
pkgload::load_all(helpers = FALSE, attach_testthat = FALSE)
15+
16+
tt_summary_tbl <- get_tt_tbl()
17+
tt_datasets_metadata <- get_tt_datasets_metadata(tt_summary_tbl)
18+
tt_urls_tbl <- parse_tt_urls(tt_summary_tbl)
19+
1620
usethis::use_data(
1721
tt_summary_tbl,
1822
tt_datasets_metadata,
@@ -26,7 +30,6 @@ usethis::use_data(
2630
# tools::checkRdaFiles("data/") (and also "R/")
2731

2832
rm(
29-
.tt_gh_base,
3033
tt_summary_tbl,
3134
tt_datasets_metadata,
3235
tt_urls_tbl

data/tt_datasets_metadata.rda

2.45 KB
Binary file not shown.

data/tt_summary_tbl.rda

296 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)