Advice needed on package using online databases (fails CHECK when database is down)
0
0
Entering edit mode
@mgierlinski-7369
Last seen 17 hours ago
United Kingdom

I have created package fenr for Bioconductor. It contains functions downloading data from GO, Kegg, Reactome and WikiPathways. As per Bioconductor requirements, these functions have executable examples and are covered by tests. This is all fine until one of the online resources is down, even for a short time, and then the package fails CHECK. This happened recently and I have received a notification of failed CHECK. This is bound to happen from time to time and I'm not happy with my package failing checks because of online resource issues.

What is the best practice in such cases? Should I put dontrun around examples for these functions and remove them from tests? This would be against Bioconductor guidelines. Should I catch download issues and instead of producing an error return a graceful NULL with a warning, or something similar?

Bioconductor • 512 views
ADD COMMENT
0
Entering edit mode

gracefully exit is a good option. so would caching results See BiocFileCache. I think biomart has tried to do this sort of caching option too since it experiences similar downtime for online resource.

ADD REPLY

Login before adding your answer.

Traffic: 828 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6