tidyverse / hms

A simple class for storing time-of-day values
https://hms.tidyverse.org/
Other
138 stars 25 forks source link

bug detected in an Rmd, If the filter (from dplyr) generates 0 lines with one column typed hms #116

Open Cervangirard opened 1 year ago

Cervangirard commented 1 year ago

Hello,

Here is a bug detected in an Rmd. If the filter (from dplyr) generates 0 lines with one column typed hms, then the chunk creates a display error. Here is a reproducible example, you have to run it inside a Rmd or quarto. I'm using version 1.1.3.9002.

library(dplyr)
library(hms)
test <- data.frame( id = letters[1:10], heure = hms::as_hms(hms::as_hms("09:00:00") + 1:10))

test %>% 
  filter(id == "y")

image

Thanks for all your work.