diff --git a/R/importWQP.R b/R/importWQP.R index c636c7357e9c0a982b42345e57f5b835af4d8ec2..48a058bdc4e22e45b896ab5a9e123ab4b20df024 100644 --- a/R/importWQP.R +++ b/R/importWQP.R @@ -85,20 +85,20 @@ importWQP <- function(obs_url, zip=FALSE, tz=""){ } ) doc <- unzip(temp) - retval <- suppressWarnings(read_delim(doc, + retval <- read_delim(doc, col_types = cols(`ActivityStartTime/Time` = col_character(), `ActivityEndTime/Time` = col_character(), USGSPCode = col_character(), ResultCommentText=col_character()), - quote = "", delim = "\t")) + quote = "", delim = "\t") unlink(doc) } else { - retval <- suppressWarnings(read_delim(obs_url, + retval <- read_delim(obs_url, col_types = cols(`ActivityStartTime/Time` = col_character(), `ActivityEndTime/Time` = col_character(), USGSPCode = col_character(), ResultCommentText=col_character()), - quote = "", delim = "\t")) + quote = "", delim = "\t") } } else { stop("Status:", headerInfo['status'], ": ", headerInfo['statusMessage'], "\nFor: ", obs_url) @@ -111,20 +111,20 @@ importWQP <- function(obs_url, zip=FALSE, tz=""){ if(zip){ doc <- unzip(obs_url) - retval <- suppressWarnings(read_delim(obs_url, + retval <- read_delim(obs_url, col_types = cols(`ActivityStartTime/Time` = col_character(), `ActivityEndTime/Time` = col_character(), USGSPCode = col_character(), ResultCommentText=col_character()), - quote = "", delim = "\t")) + quote = "", delim = "\t") unlink(doc) } else { - retval <- suppressWarnings(read_delim(obs_url, + retval <- read_delim(obs_url, col_types = cols(`ActivityStartTime/Time` = col_character(), `ActivityEndTime/Time` = col_character(), USGSPCode = col_character(), ResultCommentText=col_character()), - quote = "", delim = "\t")) + quote = "", delim = "\t") } }