Coder Social home page Coder Social logo

Comments (7)

hadley avatar hadley commented on June 4, 2024

How much of a difference would it make if you split the data package into historical and modern datasets?

from usaboundaries.

lmullen avatar lmullen commented on June 4, 2024

It might be worth doing. The historical data is only about 2.4 Mb. But I'd like to add higher resolution versions, which will add quite a bit. (If I do that, then the resolution argument will change from resolution = c("20m", "5m", "500k") to resolution = c("low", "med", "high"). But the contemporary data will have to change every year, whereas the historical will never change.

The single biggest file is the zip codes, which is 32 Mb.

from usaboundaries.

hadley avatar hadley commented on June 4, 2024

Hmmmmm, maybe separate out the zipcodes? CRAN is definitely not going to go for a 30 meg package that gets updated every year.

Bigger data packages can go as drat() repos - and you can include notes describing how to install, or provide a helper function that calls install.packages() with the right arguments. Does that make sense?

from usaboundaries.

lmullen avatar lmullen commented on June 4, 2024

Thanks for the suggestion, @hadley. I have the same basic problem with the gender package. But it looks like rOpenSci has a drat repository up and running. I think I might try that approach first for the data only packages, which will give me more flexibility about adding and extending, then just put the interface package on CRAN.

from usaboundaries.

hadley avatar hadley commented on June 4, 2024

I'd recommend putting at least one data package on cran - then the package can do something straight away. And have examples etc.

from usaboundaries.

lmullen avatar lmullen commented on June 4, 2024

This issue is fixed in the latest release. I included the contemporary and historical low-res data in the CRAN package, which can install a package with higher-resolution data from the rOpenSci repository.

from usaboundaries.

hadley avatar hadley commented on June 4, 2024

Perfect 😄

from usaboundaries.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.