Giter Club home page Giter Club logo

Comments (12)

DavisVaughan avatar DavisVaughan commented on June 25, 2024 1

yea i think the order of figuring out what path to use should look something like:

data_ames(path = NULL)

  • Use path if not NULL
  • Use modeldata.cache if not NA
  • Use global cache path into <cache-path>/model-data/ames.rds

from modeldata.

EmilHvitfeldt avatar EmilHvitfeldt commented on June 25, 2024 1

We are doing all this in https://github.com/tidymodels/modeldatatoo 😄

from modeldata.

EmilHvitfeldt avatar EmilHvitfeldt commented on June 25, 2024

https://github.com/emilhvitfeldt/textdata is an expanded version of what you are proposing. You are free to take bits and pieces as you need.

from modeldata.

DavisVaughan avatar DavisVaughan commented on June 25, 2024

Yea that looks great! I also didn't know rappdirs was an actual package. This will be helpful too

https://github.com/EmilHvitfeldt/textdata/blob/2b5e9f7bd8b6b722970d2c5b54a8989f542d252f/R/load_dataset.R#L10

from modeldata.

EmilHvitfeldt avatar EmilHvitfeldt commented on June 25, 2024

yes rappdirs is gonna save you a lot of headaches

from modeldata.

DavisVaughan avatar DavisVaughan commented on June 25, 2024

Alternatively, gargle stores things in <os-home>/.R/gargle/gargle-auth, with the additional opportunity to override this with a global option options("gargle_auth_cache" = <path>)

from modeldata.

DavisVaughan avatar DavisVaughan commented on June 25, 2024

Should have:

  • A function to clean the cache
  • A function to check if a data set is outdated
  • Maybe create subfolders by package version?
  • Provide a way to access the package version specific data if you have downloaded it in the past, even if you are on a higher version of the package (for reproducibility)

from modeldata.

EmilHvitfeldt avatar EmilHvitfeldt commented on June 25, 2024

should also have a way to overwrite the file path

from modeldata.

topepo avatar topepo commented on June 25, 2024

Perfect timing for some new data too. @trang1618 😃

from modeldata.

EmilHvitfeldt avatar EmilHvitfeldt commented on June 25, 2024

Would pins be able to solve this problem as well?

from modeldata.

topepo avatar topepo commented on June 25, 2024

datastorr looks perfect for this application.

from modeldata.

github-actions avatar github-actions commented on June 25, 2024

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

from modeldata.

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.