NEWS


phinterval 1.0.0.9000

Features

Bug fixes

Breaking changes

The keep_size argument has been removed from phint_unnest() and the function signature has been revised:

# Old Usage
phint_unnest(phint, hole_to = c("drop", "na"), keep_size = FALSE, key = NULL)

# New Usage
phint_unnest(phint, key = NULL, hole_to = c("na", "drop"))

The return type of the *_squash() variants is now always a scalar <phinterval> vector, meaning it is safe to use within dplyr::summarize(). This includes cases where the phint argument of phint_squash() or the start, end arguments of datetime_squash() are empty as the empty_to = "empty" option has been removed from the empty_to argument.

The return type of the *_squash_by() variants is now always a tibble() with columns by and phint. Additionally, the keep_by argument has been removed from these variants.

# Old Usage
phint_squash(
  phint,
  by = NULL,
  na.rm = TRUE,
  empty_to = c("hole", "na", "empty"),
  order_by = FALSE,
  keep_by = FALSE
)

# New Usage
phint_squash(
  phint,
  na_rm = TRUE,
  empty_to = c("hole", "na")
)

phint_squash_by(
  phint,
  by,
  na_rm = TRUE,
  empty_to = c("hole", "na"),
  order_by = TRUE
)

phinterval 1.0.0 (2026-02-03)