-
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
No internet connection with R Studio to download wdpa data? #10
Comments
Hi, Yeah, you should be able to download the data automatically with Cheers, Jeff |
I'm closing this due to inactivity, but please feel free to open this if you want to help solve the issue. |
Hi Jeff, update: I am now able to access https://cran.r-project.org from my browser but still pingr::is_online return a FALSE statement. Looking forward to use Wdpar Iacopo |
Hi, I don't think this is related to the CRAN issues. I have an idea for fixing this though, so I'll push a new version to GitHub later today and we can see if this fixes the problem. |
Actually, if |
@neriiacopo, could you please try installing the developmental version of wdpar on GitHub (e.g. using the R code |
The examples work smoothly now! |
Does also work now for me, thanks a lot! |
Awesome - glad to hear it's working. I'll submit the new version to CRAN. |
Hi Jeffrey, I'm still getting the error that I do not have internet connection while running wdpa_fetch(). Following curl::has_internet tells me I am off line, but pingr::is_online() says (correctly) that I am online. It would be great if you could you help me out!! I have downloaded the package both via github and via R directly, but both versions do not seem to work. I am using a windows machine if that makes a difference. Thanks in advance for your response :) |
Hi @ColineBoonman, Thanks for reaching out! Just to check, could you please try re-installing curl to ensure that you have the latest version of curl installed? If wdpar still fails after that, I can update it so that it will think there is an active internet connection if either pingr or curl indicate an online connection. |
Thanks for your quick response. I have re-installed curl, and it still says I don't have an internet connection > curl::has_internet() [1] FALSE (while pingr gives the opposite response: > pingr::is_online() [1] TRUE). When I load the wdpar library and run the following line: lie_raw_data <- wdpa_fetch("Liechtenstein", wait = TRUE) It would be great if you could include the test of both pingr and curl to check for internet connection! |
@ColineBoonman, I'm so sorry - I missed the GitHub notification email for your post. I'll work on updating this now and let you know when it's ready. |
@ColineBoonman, I've just pushed a branch with the new pingr + curl internet checks. Could you please try it out and see if that fixes it for you? You can install it with |
@ColineBoonman, I just wanted wanted to follow up and check if those updates fixed the issue? |
I am sorry for my late response. It works now!! Thank you so much! |
No worries - thanks for confirming that it works now! I'll merge the fix into the main branch. |
Fixed by a93a5c4 |
Dear Jeff,
I was excited to try out your wdpar package and downloaded it yesterday. When I tried to let your example run I received the following error:
mlt_raw_pa_data <- wdpa_fetch("MLT", wait = TRUE)
Error in wdpa_fetch("MLT", wait = TRUE) :
data not found in download_dir, and no internet connectionto download it.
As far as I understood your description, WDPA data should be downloaded by your package automatically, so no need for me to manually put something in the download-dir, right? I do not understand why I get the "no internet connection" error as I am connected to the internet and downloading packages from CRAN works just fine. I use R Studio Version 1.1.463 and R Version 3.5.2.
Maybe you have an idea why it is not working for me?
Anyway, thanks for providing this cool package!
Cheers,
Anke
The text was updated successfully, but these errors were encountered: