Skip to content

Commit

Permalink
changed base url for erddap in only erddap_data fxn, testing a fix fo…
Browse files Browse the repository at this point in the history
…r a user, #51
  • Loading branch information
sckott committed Aug 22, 2014
1 parent 1cd105a commit a506157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/erddap.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ erddap_data <- function(datasetid, ..., fields=NULL, distinct=FALSE, orderby=NUL
orderbymax=NULL, orderbymin=NULL, orderbyminmax=NULL, units=NULL, callopts=list())
{
fields <- paste(fields, collapse = ",")
url <- "http://coastwatch.pfeg.noaa.gov/erddap/tabledap/%s.csv?%s"
url <- "http://oceanview.pfeg.noaa.gov/erddap/tabledap/%s.csv?%s"
url <- sprintf(url, datasetid, fields)
args <- list(...)
distinct <- if(distinct) 'distinct()' else NULL
Expand Down Expand Up @@ -268,4 +268,4 @@ erddap_search <- function(query, page=NULL, page_size=NULL, callopts=list()){
print.erddap_search <- function(x, ...){
cat(sprintf("%s results, showing first 20", nrow(x$info)), "\n")
print(head(x$info, n = 20))
}
}

0 comments on commit a506157

Please sign in to comment.