We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d06f8fe + 12c47e5 commit 6831b8fCopy full SHA for 6831b8f
R/ic_date.R
@@ -10,7 +10,7 @@
10
ic_datetime <- function(x) {
11
12
# TODO (LH): regex check x timestamp
13
- if(!is.na(x) & !x == "NA" & !grepl("^\\d{8}T\\d{6}Z?$", x)) {
+ if(any(!is.na(x) & !(x == "NA") & !grepl("^\\d{8}T\\d{6}Z?$", x))) {
14
# stop("time should be in this format: 20180809T160000Z")
15
warning("Non-standard time string: should be in this format: 20180809T160000Z")
16
x = ""
0 commit comments