ivelasq / leaidr Goto Github PK
View Code? Open in Web Editor NEWAn R Package for U.S. School District Shapefiles
License: Other
An R Package for U.S. School District Shapefiles
License: Other
After running
lea <-
lea_get(state = NULL)
I get error:
Error: [ENOENT] Failed to make directory '../../../var/folders': no such file or directory
Hi all, in #5, @datalorax you mentioned the possibility of using OSF to store the data (and using the OSF API via {osfr} to access it).
Just as a proof of concept, I checked whether it is possible to download a file in a public OSF repository without adding an OSF API key, and it does appear to be so. So, if this worked and was not less efficient than the current route (with the data stored in a separate repository), then it would remove the step of adding a GITHUB PAT (or any kind of key/token)... which may be cool?
@ivelasq is it worth possibly exploring in a branch? I don't think it would take too long to try out (just to gauge whether or not it may be worth it with our actual data.
library(osfr)
f <- osfr::osf_retrieve_file('63d7f')
osfr::osf_download(f)
The default branch of this repository is being moved from master
to main
. This issue will be closed when the default branch has been changed.
For help and guidance with updating the default branch of your local or forked copy of this repo, please see Renaming the default branch.
Search for files that may potentially reference master
.
ID: 91e77a361e4e
Hi,
I am trying to pull a state shapefile and it seems that something is 'broken'. I found the website with the example of using leaidr package, and when I run the line it give this message:
tn <- lea_get("tn")
trying URL 'https://github.com/datalorax/us-district-shapefiles/raw/master/individ-districts/47.dbf'
Content type 'application/octet-stream' length 210592 bytes (205 KB)
downloaded 205 KB
trying URL 'https://github.com/datalorax/us-district-shapefiles/raw/master/individ-districts/47.prj'
Content type 'text/plain; charset=utf-8' length 147 bytes
downloaded 147 bytes
trying URL 'https://github.com/datalorax/us-district-shapefiles/raw/master/individ-districts/47.shp'
Content type 'application/octet-stream' length 7345380 bytes (7.0 MB)
downloaded 7.0 MB
trying URL 'https://github.com/datalorax/us-district-shapefiles/raw/master/individ-districts/47.shx'
Content type 'application/octet-stream' length 1364 bytes
downloaded 1364 bytes
Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, :
Cannot open layer
I tried with other states, and it gives me the same error. Am I doing this correctly? I have installed all the pacakges that the Isabella's webiste asked, but still fails.
By the way, my project is a survey at the school districts in IA, and what you have here is exactly what I needed. I just cannot figure out what is wrong.
Thanks.
Ki
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.