-
Notifications
You must be signed in to change notification settings - Fork 10
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
Get-my-data-in execution halted #8
Comments
My first guess is that it may be due to lines 90 & 91, and possible linux/windows differences. filename <- system.file("extdata/afriairports.csv", package="afrilearndata") @anelda can you paste those two lines into your R console and see if they work ? |
Hi @andysouth Yes, the first line works, but the second line gives this error -
|
Thanks @anelda @AnneMTreasure, this one should be fixed by 083e2e0 |
Hi @andysouth, I reinstalled, but when running the following code (on a mac):
I get this error:
I also get the same error as Anelda in the comment above when clicking on the tutorials using the tutorial tab (i.e. A "Loading tutorial" message appears with a circle that turns continuously and no back/stop button). |
Checking some of the other tutorials, when running:
I get the following message (also mentioned in issue #9):
Of the tutorials currently shown as available in |
Thanks @AnneMTreasure So the problem which is causing it to fail on Mac & Linux, while it seems to be OK on Windows is shown by this :
CPL_write_OGR is (I think) a GDAL (Geospatial Data Abstraction Library) function. GDAL can operate differently on different systems. Lines 228-236 contain this code which just reads in a kml and plots it :
So this shouldn't be a problem, that code is not even writing anything, but is, and is tricky to fix. Can you try the 3 lines of code above in your R console ? |
Hi @andysouth , Running this code:
The first two lines run, but this one:
gives this error:
|
Thanks @AnneMTreasure seems to be a problem with either reading in or plotting the highways. Can you try : |
Hi @andysouth, these work:
|
Interesting @AnneMTreasure . So the object looks OK, but mapview doesn't like it. Just checking that tmap works ? Another route to try before the mapview command : library(rgdal) |
Hi @andysouth , tmap works:
I ran:
and reran:
but still get this error:
Are there any other packages I should have installed? |
Thanks @AnneMTreasure I think this is a mapview problem, maybe you/we can submit as an issue there. One last thing to try. The kml file has a column that is mostly empty, which I filter out when creating the afrihighway object in afrilearndata. So could try this. #remove Description column, only has contents in first row |
Hi @andysouth ,
still gives me:
|
Hi @andysouth , Found this GitHub issue: mapview with FlatGeoBuf not rendering I haven't read everything in that issue and the fixes that were used, but tried this one quickly:
before:
and a map rendered. I'm not sure if this is what this map is supposed to look like: For the online tutorial for intro to spatial data in R: Section H. Read spatial data from files The issue with rendering the plot appears here as well and I get the message:
I'm not sure if this helps? |
Thanks @AnneMTreasure, good google work finding the FlatGeoBuf error 👍 . I saw that but didn't get as far as you in actually trying it. This is what makes me think this is a mapview problem and not ours. Can you just install latest version of mapview and check the error persists ? If so, can you submit this reproducible example as an issue to mapview ? That way the developers can test it at their end. Better coming from you given that it doesn't seem to happen on my windows machine.
Re the other problem, better to submit that here as a separate issue. There's a chance it might be fixed by a recent commit I've made (fingers crossed). |
When running the following code and also when following instructions in the afrilearnr README file I get the error below:
learnr::run_tutorial("get-my-data-in", "afrilearnr")
There is no way to recover and try an alternative tutorial if I click on Tutorial -> run tutorial in the tutorial tab. A "Loading tutorial" message appears with a circle that turns continuously and no back/stop button.
I restarted my R session, but the Loading tutorial message stays and wheel keeps on turning.
It works if I right click on the Tutorial tab and click on
Reload
The text was updated successfully, but these errors were encountered: