Comments (6)
Yeah, we should always be using LazyData: true
from modeldata.
This was on purpose so that they won’t occupy any memory until you use them.
from modeldata.
Makes sense. I suppose I'll have to be less lazy 😢
from modeldata.
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.
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.
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)
- Release modeldata 0.1.1 HOT 2
- Release modeldata 0.1.1 HOT 2
- Add str(dataset) to all data sets HOT 1
- Move `master` branch to `main` HOT 2
- Multi class data set HOT 3
- Upkeep for modeldata HOT 1
- URL for rcompanion is currently bad HOT 1
- Release modeldata 0.2.0 HOT 2
- call `str(dataset)` in examples HOT 2
- Have data sets with character variables HOT 1
- Can't access to data sets using `::` HOT 5
- Release modeldata 1.0.0 HOT 1
- Release modeldata 1.0.0 HOT 1
- Release modeldata 1.0.1 HOT 1
- Release modeldata 1.1.0 HOT 1
- Upkeep for modeldata HOT 1
- Release modeldata 1.2.0 HOT 1
- Release modeldata 1.3.0
- sparse data set
- Release modeldata 1.4.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modeldata.