Closed TimTaylor closed 1 year ago
To make sure I understand: is the issue that some examples are currently not run during checks because outbreaks
may not be installed? Or that examples may not run when users try to run them?
I liked the idea of a centralized repos for datasets used in other packages' examples, as it avoid some potential issues:
If this is solely for testing purposes, maybe one option would be to have a local, non-exported copy of the dataset just used in tests?
is the issue that some examples are currently not run during checks because outbreaks may not be installed? Or that examples may not run when users try to run them?
The latter. However as it's just a data package and not actually going to change it actually just makes more sense to import (rather than suggests) outbreaks and provide the dataset directly through a rexport. Will go that route I think.
Got you, thanks. I think Import may be the easiest approach indeed. Thanks a lot for working on this!
Hmm - Can't actually reexport as nothing is exported. Am leaving as is for now but AFAIK possible two solutions would be:
@thibautjombart - The only data we use in
incidence2
from outbreaks isebola_sim_clean$linelist
. I'm thinking of vendoring this (i.e. including the data within incidence2) in the next release as this will ensure all examples run (in a useful way) without the presence of outbreaks. The plan would be to still explicitly call outbreaks in the vignette, just not the example.How would you like the data set attributed? To the outbreaks package or should I also include the attribution to yourself, Pierre and the additional references as in
help("ebola_sim_clean", "outbreaks")
?