Closed seabbs closed 3 years ago
👋 Thanks for opening this pull request! Can you please run through the following checklist before requesting review (ticking as complete or if not relevant).
devtools::load_all(); devtools::test()
) first setting options(testDownload=TRUE, testSource=class-name)
and report your findings. devtools::load_all(); devtools::test()
). Thank you again for the contribution. If making large scale changes consider using our pre-commit
hooks (see the contributing guide) to more easily comply with our guidelines.
I was waiting for my output comparator to get somewhere and so couldn't build and pick through this this evening.
One thing which I had wondered which I thought might be addressed by this and could possibly wait for 0.9.1 is whether we should move the call to set_regions
into download
or even clean
. Much of the rest of the initialize
is fairly lightweight, but some of our set_regions
code builds and rebuilds tibbles. I think I had thought it was only called once, and only called for the source which was being sought, but then I stepped through and realized that it seems to be called for every class the first time you ask what things are available.
Ah interesting, yes my assumption had been that it was pretty light weight as well but perhaps it isn't...
If not in initialise I am not sure I like another location for it. It's not really downloading for example, and nor is it really cleaning (though perhaps this is more arguable). I guess you could have it as a standalone call but it really doesn't seem necessary to get the user to call it themselves.
For me I would vote leave as is for now but for sure open to doing something else targeting 0.9.1
? The region codes in general seem really tricky to handle so I'd like to make it better but I am not clear what an "optimal" solution looks like.
This PR unhelpfully combines some small documentation fixes and renaming the
check_
function to a name better suited to both user use (as it seems like a useful function if not wanting to use theget_
wrappers). I have completed the PR checklist as requested.