This PR adds 2019 elections data and adjusts the code so it will handle election years after 2015 cleanly.
In addition to @mccormackandrew, I think @aserlich and @trevortombe may have familiarity and expertise to comment on these adjustments. (Or may have already made them themselves.) @mountainMath has been doing some other things with recent Elections data as well and may also be able to offer advice.
Other adjustments:
Some correction of data documentation (largely correcting dimensions)
Updated vignette to use 2019 election data, and extend the colour palette to use grey for an independent MP
Added rmarkdown as a suggested package to get it to build vignettes cleanly
Added github workflow for build testing and integration on macOS, Windows and two flavours of Ubuntu. (Workflow copied from that in use in the @epiforecasts covidregionaldata package, with some portions commented out.
I am also working on code which might cleanly download preliminary results from Elections Canada and clean it similarly to the data stored in the package.
This PR adds 2019 elections data and adjusts the code so it will handle election years after 2015 cleanly.
In addition to @mccormackandrew, I think @aserlich and @trevortombe may have familiarity and expertise to comment on these adjustments. (Or may have already made them themselves.) @mountainMath has been doing some other things with recent Elections data as well and may also be able to offer advice.
Other adjustments:
rmarkdown
as a suggested package to get it to build vignettes cleanlyI am also working on code which might cleanly download preliminary results from Elections Canada and clean it similarly to the data stored in the package.