You should report unexpected behavior in the GitHub issue tracker for dplyr.
Reprex isolating the error:
library(dplyr)
int_date <- Sys.Date()
num_date <- Sys.Date()
storage.mode(int_date) <- "integer"
if_else(TRUE, int_date, num_date)
# Error: `false` must be a `Date` object, not a `Date` object
# Call `rlang::last_error()` to see a backtrace
If you need to know how to report bugs for any package, you can run this command:
# dplyr is the example, but any package name will do
packageDescription("dplyr", fields = c("BugReports", "Maintainer"))
# BugReports: https://github.com/tidyverse/dplyr/issues
# Maintainer: Hadley Wickham <hadley@rstudio.com>
#
# -- File: C:/Users/nwerth/Documents/R/win-library/3.6/dplyr/Meta/package.rds
# -- Fields read: BugReports, Maintainer
If there's a BugReports field, it tells you where to go. Otherwise, send an email to the person named in Maintainer.