Skip to content
Snippets Groups Projects
Commit 2c9745a9 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Took out examples to pass the time requirements for package checks on CRAN.

parent c4cc0975
No related branches found
No related tags found
1 merge request!40Final CRAN updates.
......@@ -25,10 +25,10 @@
#' startDate <- '1985-01-01'
#' endDate <- ''
#' pCode <- c("00060","00010")
#' url_daily <- constructNWISURL(siteNumber,pCode,
#' startDate,endDate,'dv',statCd=c("00003","00001"))
#' \dontrun{
#' # Not running for time considerations
#' url_daily <- constructNWISURL(siteNumber,pCode,
#' startDate,endDate,'dv',statCd=c("00003","00001"))
#' url_unit <- constructNWISURL(siteNumber,pCode,"2012-06-28","2012-06-30",'iv')
#'
#' url_qw_single <- constructNWISURL(siteNumber,"01075",startDate,endDate,'qw')
......@@ -46,6 +46,8 @@ constructNWISURL <- function(siteNumber,parameterCd="00060",startDate="",endDate
service <- match.arg(service, c("dv","uv","iv","qw","gwlevels","rating","peak","meas"))
parameterCdFile <- parameterCdFile
if(any(!is.na(parameterCd))){
pcodeCheck <- all(nchar(parameterCd) == 5) & all(!is.na(suppressWarnings(as.numeric(parameterCd))))
......
......@@ -23,6 +23,7 @@
#' endDate <- "2012-10-01"
#' offering <- "00003"
#' property <- "00060"
#' \dontrun{
#' obs_url <- constructNWISURL(siteNumber,property,
#' startDate,endDate,"dv",format="tsv")
#' data <- importRDB1(obs_url)
......@@ -46,6 +47,7 @@
#' fileName <- "RDB1Example.txt"
#' fullPath <- file.path(filePath, fileName)
#' importUserRDB <- importRDB1(fullPath)
#' }
importRDB1 <- function(obs_url, asDateTime=FALSE, qw=FALSE, convertType = TRUE, tz=""){
if(tz != ""){
......
......@@ -21,6 +21,7 @@
#' offering <- '00003'
#' property <- '00060'
#' obs_url <- constructNWISURL(siteNumber,property,startDate,endDate,'dv')
#' \dontrun{
#' data <- importWaterML1(obs_url,TRUE)
#'
#' groundWaterSite <- "431049071324301"
......@@ -48,6 +49,7 @@
#' names(attributes(data))
#' attr(data, "url")
#' attr(data, "disclaimer")
#' }
importWaterML1 <- function(obs_url,asDateTime=FALSE, tz=""){
if(url.exists(obs_url)){
......
......@@ -10,12 +10,15 @@
#' @return retval dataframe
#' @export
#' @examples
#' \dontrun{
#' # Examples not run for time considerations
#' dataTemp <- readNWISdata(stateCd="OH",parameterCd="00010")
#' dataTempUnit <- readNWISdata(sites="03086500", service="iv", parameterCd="00010")
#' #Empty:
#' multiSite <- readNWISdata(sites=c("04025000","04072150"), service="iv", parameterCd="00010")
#' #Not empty:
#' multiSite <- readNWISdata(sites=c("04025500","040263491"), service="iv", parameterCd="00060")
#' }
readNWISdata <- function(service="dv", ...){
matchReturn <- list(...)
......
......@@ -27,11 +27,13 @@
#' startDate <- '2010-01-01'
#' endDate <- ''
#' pCodes <- c('34247','30234','32104','34220')
#' \dontrun{
#' rawNWISqwData <- readNWISqw(siteNumber,pCodes,startDate,endDate)
#' rawNWISqwDataExpandReshaped <- readNWISqw(siteNumber,pCodes,
#' startDate,endDate,expanded=TRUE)
#' rawNWISqwDataExpand <- readNWISqw(siteNumber,pCodes,
#' startDate,endDate,expanded=TRUE,reshape=FALSE)
#' }
readNWISqw <- function (siteNumber,pCodes,startDate="",endDate="",
expanded=FALSE,reshape=TRUE,tz=""){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment