lubridate - messages
问题 Will it be possible to suppress messages such as "Using date format..." when using a function like? > ymd(vec) Using date format %Y%m%d Whilst these are good to see when you are casting a vector, it can be annoying in some circumstances. 回答1: Looking at the ymd code, it callse parse_date , which gives those annoying messages via the command message . Looking at ?message , there is a corresponding suppressMessages : suppressMessages(ymd(x)) (Note - other similar functions are suppressWarnings