-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poor internet connection breaks wdpa_fetch #39
Comments
Thanks for reporting this and verifying that this is issue is a problem with the latest GitHub version. Yeah I think that would work. Just to check I understand correctly, you're suggesting we add a new parameter (e.g. called |
That's right, the
It might be worth warning the user in the documentation that the delay occurs ~4 times per country code, so a 5 second sleep time means 20 seconds per country. Overall, I'm impressed with the package, it saves me a lot of time getting MPA polygons into R! |
Ok great! Yeah, I feel like
Yeah, I feel like
Good point - I'll add that to the documentation
Thanks! How urgently do you need this? I've got other stuff I need to focus on this week - but I can try and get this into the GitHub version over the weekend? If you need it urgently ASAP, I suggest forking the repo and manually changing the sleep durations. |
PS. there's currently a bug in importing the full global dataset. So if you need that, try the fix-global branch. |
I think I can work around the bug manually by copying the pre-downloaded data to the right folder, so I can wait until you get the fix into the repo. I won't need the global data for now, but if any of my colleagues ask about it, I'll know where to point them.
EDIT: fix comment formatting |
Ok,great - thanks! Ah - that's an excellent point. Yeah, I totally forgot about about the |
I suggest In the end though, I think any of the ideas so far are fine. Thanks for putting together the fix quickly! |
Ok - sounds good! I'll try and get that merged into the main branch |
I've just merged the PR - so if you install from the main branch, there's the new |
I am using version 1.3.1.3.
When I called
aus_mpa <- wdpa_fetch("Australia", wait = TRUE)
, I got the following error:I am aware of #35, so I made sure to use a recent github version of
wdpar
. The issue went away when I switched to a faster, non-mobile, connection.Reading around, it seems like PhantomJS doesn't have a good way to know if the page has loaded yet, would it make sense to parameterize the sleep timer in
wdpa_url
instead?The text was updated successfully, but these errors were encountered: