Testing offline ChEMBL functions is tricky because they require a downloaded database. I can test them locally but I cannot request CRAN/GitHub to download the database. I first looked at the vcr package (because we are already using it) but I it only works with https requests. I'm now thinking about creating a tiny version of the ChEMBL database (e.g. only entries used by functions, examples and tests) and then releasing this tiny database with the package. This does count as redistribution so I may have to ask ChEMBL for permission.
Do you know any better alternatives?
Testing offline ChEMBL functions is tricky because they require a downloaded database. I can test them locally but I cannot request CRAN/GitHub to download the database. I first looked at the
vcrpackage (because we are already using it) but I it only works with https requests. I'm now thinking about creating a tiny version of the ChEMBL database (e.g. only entries used by functions, examples and tests) and then releasing this tiny database with the package. This does count as redistribution so I may have to ask ChEMBL for permission.Do you know any better alternatives?