ropensci / rerddap
Showing 1 of 5 files from the diff.

@@ -70,7 +70,8 @@
Loading
70 70
#' }
71 71
72 72
info <- function(datasetid, url = eurl(), ...){
73 -
  json <- erdddap_GET(sprintf(paste0(url, 'info/%s/index.json'), datasetid),
73 +
  url <- sub("/$", "", url)
74 +
  json <- erdddap_GET(sprintf(file.path(url, 'info/%s/index.json'), datasetid),
74 75
                      NULL, ...)
75 76
  colnames <- vapply(tolower(json$table$columnNames),
76 77
                     function(z) gsub("\\s", "_", z), "", USE.NAMES = FALSE)
@@ -156,7 +157,8 @@
Loading
156 157
}
157 158
158 159
table_or_grid <- function(datasetid, url) {
159 -
  table_url <- paste0(url, 'tabledap/index.json')
160 +
  url <- sub("/$", "", url)
161 +
  table_url <- file.path(url, 'tabledap/index.json')
160 162
  tab <- toghelper(table_url)
161 163
  if (datasetid %in% tab) "tabledap" else "griddap"
162 164
}
Files Coverage
R 62.13%
Project Totals (20 files) 62.13%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading