Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename default #38

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
paths-ignore:
- .github/workflows/update_datasets.yaml
pull_request:
branches: [main, master]
branches: [main]
paths-ignore:
- .github/workflows/update_datasets.yaml

Expand All @@ -33,7 +33,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
paths-ignore:
- .github/workflows/update_datasets.yaml
pull_request:
branches: [main, master]
branches: [main]
paths-ignore:
- .github/workflows/update_datasets.yaml
release:
Expand All @@ -26,7 +26,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/pr-fetch@v2
with:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/pr-fetch@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
paths-ignore:
- .github/workflows/update_datasets.yaml
pull_request:
branches: [main, master]
branches: [main]
paths-ignore:
- .github/workflows/update_datasets.yaml
workflow_dispatch:
Expand All @@ -20,7 +20,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion .github/workflows/update_datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GH_PAT }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main
token: ${{ env.GITHUB_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ttmeta
Title: TidyTuesday Dataset Metadata
Version: 0.1.0.20241125
Version: 0.1.0.20241129
Authors@R:
person("Jon", "Harmon", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-4781-4346"))
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
17 changes: 10 additions & 7 deletions data-raw/internal.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
library(ttmeta)
pkgload::load_all(helpers = FALSE, attach_testthat = FALSE)

.tt_gh_base <- "https://github.com/rfordatascience/tidytuesday/blob/master/"

tt_summary_tbl <- get_tt_tbl()
tt_datasets_metadata <- get_tt_datasets_metadata(tt_summary_tbl)
tt_urls_tbl <- parse_tt_urls(tt_summary_tbl)
.tt_gh_base <- "https://github.com/rfordatascience/tidytuesday/blob/main/"

usethis::use_data(
.tt_gh_base,
Expand All @@ -13,6 +9,14 @@ usethis::use_data(
compress = "xz"
)

rm(.tt_gh_base)

pkgload::load_all(helpers = FALSE, attach_testthat = FALSE)

tt_summary_tbl <- get_tt_tbl()
tt_datasets_metadata <- get_tt_datasets_metadata(tt_summary_tbl)
tt_urls_tbl <- parse_tt_urls(tt_summary_tbl)

usethis::use_data(
tt_summary_tbl,
tt_datasets_metadata,
Expand All @@ -26,7 +30,6 @@ usethis::use_data(
# tools::checkRdaFiles("data/") (and also "R/")

rm(
.tt_gh_base,
tt_summary_tbl,
tt_datasets_metadata,
tt_urls_tbl
Expand Down
Binary file modified data/tt_datasets_metadata.rda
Binary file not shown.
Binary file modified data/tt_summary_tbl.rda
Binary file not shown.
Binary file modified data/tt_urls_tbl.rda
Binary file not shown.
Loading