Other files ignored by Codecov
man/batch_from_id.Rd
is new.
tests/testthat/test_query.r
has changed.
NAMESPACE
has changed.
man/editcheck.Rd
has changed.
177 | 177 | dplyr::glimpse(x) |
|
178 | 178 | } |
|
179 | 179 | ||
180 | - | batch <- function(x) UseMethod("batch", x) |
|
181 | - | batch.GwasInfo <- function(x) |
|
180 | + | #' Extract batch name from study ID |
|
181 | + | #' |
|
182 | + | #' @param id Array of study IDs |
|
183 | + | #' |
|
184 | + | #' @export |
|
185 | + | #' @return Array of batch names |
|
186 | + | batch_from_id <- function(id) |
|
182 | 187 | { |
|
183 | - | sapply(strsplit(x[["id"]], "-"), function(x) paste(x[1], x[2], sep="-")) |
|
188 | + | sapply(strsplit(id, "-"), function(x) paste(x[1], x[2], sep="-")) |
|
184 | 189 | } |
|
185 | 190 | ||
186 | - | ||
187 | 191 | #' Get list of data batches in IEU GWAS database |
|
188 | 192 | #' |
|
189 | 193 | #' |
320 | 324 | #' Check datasets that are in process of being uploaded |
|
321 | 325 | #' |
|
322 | 326 | #' @param id ID |
|
323 | - | #' @param access_token=check_access_token() <what param does> |
|
327 | + | #' @param access_token Google OAuth2 access token. Used to authenticate level of access to data. By default, checks if already authenticated through \code{get_access_token} and if not then does not perform authentication |
|
324 | 328 | #' |
|
325 | 329 | #' @export |
|
326 | - | #' @return |
|
330 | + | #' @return Dataframe |
|
327 | 331 | editcheck <- function(id, access_token=check_access_token()) |
|
328 | 332 | { |
|
329 | 333 | api <- options()[["ieugwasr_api"]] |
Files | Coverage |
---|---|
R | 62.15% |
Project Totals (7 files) | 62.15% |