Skip to content

Commit

Permalink
Merge pull request #87 from gladkia/86-fix-bioc-builds-on-windows
Browse files Browse the repository at this point in the history
86 fix bioc builds on windows
  • Loading branch information
gladkia authored Aug 25, 2024
2 parents 425cda0 + e3d93f4 commit 188c455
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: igvShiny
Title: igvShiny: a wrapper of Integrative Genomics Viewer (IGV - an interactive
tool for visualization and exploration integrated genomic data)
Version: 1.0.3
Version: 1.0.4
Date: 2024-08-25
Authors@R: c(
person("Paul","Shannon", role = c("aut"),
Expand Down Expand Up @@ -29,7 +29,6 @@ Imports:
httr,
jsonlite,
randomcoloR,
RCurl,
utils
Suggests:
BiocStyle,
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## igvShiny 1.0.4 - 2024-08-25
* switch from Rcurl::url.exists to httr::http_error (Windows compatibility)

## igvShiny 1.0.3 - 2024-08-25
* stop using Amazon S3 URLs by default

Expand Down
2 changes: 1 addition & 1 deletion R/GWASTrack.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ GWASTrack <- function(trackName,
}

if (data.class == "character") {
if (!RCurl::url.exists(data)) {
if (httr::http_error(data)) {
# was a legitimate url provided?
error.message <-
sprintf("error: putative gwas file url unreachable: '%s'",
Expand Down
6 changes: 4 additions & 2 deletions R/genomeSpec.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ get_css_genomes <- function(test = FALSE) {

current.genomes.file <- "https://igv.org/genomes/genomes.json"

if (!RCurl::url.exists(current.genomes.file))
if (httr::http_error(current.genomes.file))
return(get_basic_genomes())

current.genomes.raw <-
Expand Down Expand Up @@ -189,7 +189,9 @@ parseAndValidateGenomeSpec <- function(genomeName,

exists.function <- switch(dataMode,
"localFiles" = file.exists,
"http" = RCurl::url.exists)
"http" = function(x, ...) {
!(httr::http_error(x, ...))
})
stopifnot(exists.function(fasta))
stopifnot(exists.function(fastaIndex))
if (!is.na(genomeAnnotation))
Expand Down
1 change: 0 additions & 1 deletion R/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# switch to namespace::function

#' @importFrom checkmate assert_string
#' @importFrom RCurl url.exists

0 comments on commit 188c455

Please sign in to comment.