Giter Club home page Giter Club logo

Comments (6)

hadley avatar hadley commented on September 26, 2024 1

Yeah, we should always be using LazyData: true

from modeldata.

topepo avatar topepo commented on September 26, 2024

This was on purpose so that they won’t occupy any memory until you use them.

from modeldata.

alexpghayes avatar alexpghayes commented on September 26, 2024

Makes sense. I suppose I'll have to be less lazy 😢

from modeldata.

rpruim avatar rpruim commented on September 26, 2024

Is this true? See http://r-pkgs.had.co.nz/data.html, where @hadley recommends using lazy data and shows that the data do not take up memory until used:

Quoted from above referene

If the DESCRIPTION contains LazyData: true, then datasets will be lazily loaded. This means that they won’t occupy any memory until you use them. The following example shows memory usage before and after loading the nycflights13 package. You can see that memory usage doesn’t change until you inspect the flights dataset stored inside the package.

pryr::mem_used()
## 31.6 MB
library(nycflights13)
pryr::mem_used()
## 33.3 MB
invisible(flights)
pryr::mem_used()
## 74 MB

I recommend that you always include LazyData: true in your DESCRIPTION. devtools::create() does this for you.

from modeldata.

rpruim avatar rpruim commented on September 26, 2024

I would love to use some of these as I refresh some examples in my packages. I had hoped to do that and get the updates onto CRAN this week. But if this can get to CRAN with LazyData: true first, that would be great.

Do you have other updates in the works, or could this be a simple edit of DESCRIPTION and submission to CRAN?

from modeldata.

github-actions avatar github-actions commented on September 26, 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.