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

Dates and org #36

Merged
merged 3 commits into from
Sep 3, 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 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.20240618
Version: 0.1.0.20240903
Authors@R:
person("Jon", "Harmon", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-4781-4346"))
Expand Down Expand Up @@ -37,9 +37,9 @@ Suggests:
pkgload,
testthat (>= 3.2.0)
Remotes:
thebioengineer/tidytuesdayR
dslc-io/tidytuesdayR
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
8 changes: 7 additions & 1 deletion data-raw/just-new.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkgload::load_all(reset = FALSE, helpers = FALSE, attach_testthat = FALSE)
pkgload::load_all(helpers = FALSE, attach_testthat = FALSE)

updated_tt_summary_tbl <- get_tt_tbl()
new_datasets <- dplyr::filter(
Expand Down Expand Up @@ -65,6 +65,12 @@ if (nrow(new_datasets)) {
version = 2
)

desc <- desc::desc(here::here())
pkg_version <- unclass(desc$get_version())[[1]]
pkg_version[[4]] <- stringr::str_remove_all(lubridate::today(), "-")
desc$set_version(as.package_version(paste(pkg_version, collapse = ".")))
desc$write()

rm(
tt_summary_tbl,
tt_datasets_metadata,
Expand Down
Binary file modified data/tt_datasets_metadata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/datasets-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# A tibble: 3 x 6
year week dataset_name variables observations variable_details
<int> <int> <chr> <int> <int> <list>
1 2018 8 <NA> NA NA <NULL>
1 2018 8 week8_honey_production 3 394 <tibble [3 x 6]>
2 2018 9 week9_comic_characters 17 23272 <tibble [17 x 6]>
3 2023 20 tornados 27 68693 <tibble [27 x 6]>

Loading