Skip to content

Commit

Permalink
fix #37 and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPico committed Sep 1, 2024
1 parent cf26532 commit 7e7f654
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: rWikiPathways
Type: Package
Title: rWikiPathways - R client library for the WikiPathways API
Version: 1.25.0
Date: 2023-10-24
Version: 1.25.1
Date: 2024-09-01
Authors@R: c(person("Egon", "Willighagen", role = c("aut","cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-7542-0286")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Changes in version 1.25.1
+ bug fix: downloadPathwayArchive scrapes "File Name" column
Changes in version 1.22.0
+ Reimplementation of every function, replacing web service with static JSON
+ getRecentChanges now returns data.frame of pathways per last-edit date
Expand Down
2 changes: 1 addition & 1 deletion R/downloadPathwayArchive.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ downloadPathwayArchive <- function(date='current',organism=NULL, format=c('gpml'
if (date == 'current'){ #determine filename
data.url <- getURL(paste0('https://data.wikipathways.org/current/',format),
followlocation=TRUE, .opts=list(useragent="Mozila 5.0"))
curr.files <- readHTMLTable(data.url)[[1]]$Filename
curr.files <- readHTMLTable(data.url)[[1]]$`File Name`
filename <- grep(sub("\\s","_",organism), curr.files, value=TRUE)
if (length(filename) == 0)
stop ('Could not find a file matching your specifications. Try browsing https://data.wikipathways.org.')
Expand Down

0 comments on commit 7e7f654

Please sign in to comment.