From f1d6d238fb86576bc431c3acd0cb7d9e9df10d3a Mon Sep 17 00:00:00 2001 From: Gibran Hemani Date: Thu, 14 Mar 2024 11:04:15 +0000 Subject: [PATCH] fixed issues with class checks --- DESCRIPTION | 2 +- R/query.R | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index cac7f97..2039365 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ieugwasr Title: R Interface to the 'OpenGWAS' Database API -Version: 0.1.7 +Version: 0.1.8 Authors@R: c( person("Gibran", "Hemani", , "g.hemani@bristol.ac.uk", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0003-0920-1055")), diff --git a/R/query.R b/R/query.R index 34367c2..82cef36 100644 --- a/R/query.R +++ b/R/query.R @@ -289,7 +289,6 @@ associations_query <- function(variants=variants, id=id, proxies=proxies, r2=r2, maf_threshold=maf_threshold ), access_token=access_token) %>% get_query_content() - if(inherits(out, "response")) if(inherits(out, "response")) { return(out) @@ -456,7 +455,6 @@ tophits_query <- function(id, pval=5e-8, clump = 1, r2 = 0.001, kb = 10000, pop= pop=pop ), access_token=access_token) %>% get_query_content() if(inherits(out, "response")) - if(inherits(out, "response")) { return(out) } else if(is.data.frame(out)) {