How to check missing days in datasets in R

A post was merged into an existing topic: find the longest consecutive time length in the whole time period of this data frame?