How to check missing days in datasets in R

A post was split to a new topic: find the longest consecutive time length in the whole time period of this data frame?