wikipathways / rWikiPathways

R package for WikiPathways API
https://r.wikipathways.org/
MIT License
15 stars 6 forks source link

downloadPathwayArchive requires XML #4

Closed AlexanderPico closed 5 years ago

AlexanderPico commented 5 years ago

From: Gabriel, https://github.com/egonw/rwikipathways/issues/7

Hi @AlexanderPico,

Error

I was unable to execute this code in a fresh R session:

library(rWikiPathways)
downloadPathwayArchive(
  organism = "Homo sapiens", format = "gmt"
)

This code returned the following error:

Error in readHTMLTable(paste0("http://data.wikipathways.org/current/",  : 
  could not find function "readHTMLTable"

Current Workaround

I called library(XML) before the downloadPathwayArchive() and it worked fine.