Skip to content

Commit b2fd881

Browse files
MINOR: [R][CI] Fix nightlies broken by refactoring (apache#14580)
Authored-by: Neal Richardson <neal.p.richardson@gmail.com> Signed-off-by: Nic Crane <thisisnic@gmail.com>
1 parent 04917f9 commit b2fd881

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

r/R/dplyr-group-by.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ set_group_attributes <- function(tab, group_vars, .drop) {
9393
# so passing NULL means unset (ungroup)
9494
if (is.null(group_vars) || length(group_vars)) {
9595
# Since accessing schema metadata does some work, only overwrite if needed
96-
new_atts <- old_atts <- tab$metadata$r$attributes
96+
new_atts <- old_atts <- tab$metadata$r$attributes %||% list()
9797
new_atts[[".group_vars"]] <- group_vars
9898
new_atts[[".group_by_drop"]] <- .drop
9999
if (!identical(new_atts, old_atts)) {

r/tests/testthat/test-dplyr-funcs-datetime.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,7 @@ test_that("date works in arrow", {
12821282
test_that("date() errors with unsupported inputs", {
12831283
# Use InMemoryDataset here so that abandon_ship() errors instead of warns.
12841284
# The lubridate version errors too.
1285+
skip_if_not_available("dataset")
12851286
expect_error(
12861287
example_data %>%
12871288
InMemoryDataset$create() %>%

0 commit comments

Comments
 (0)