From 47aeb5b3bc7403eed9db2093ea8dc6a05489e419 Mon Sep 17 00:00:00 2001 From: Vitalie Spinu Date: Mon, 29 Apr 2013 15:59:37 +0200 Subject: [PATCH] use sub/gsub only with perl=TRUE or fixed=TRUE (bug #181) --- R/guess.r | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/guess.r b/R/guess.r index 1224faaa..f264633c 100644 --- a/R/guess.r +++ b/R/guess.r @@ -383,14 +383,14 @@ guess_formats <- function(x, orders, locale = Sys.getlocale("LC_TIME"), r = sprintf("((%s\\D*%s)|%s)", num[["I"]], alpha[["p"]], num[["H"]])) - num[nms] <- sub("