Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to LazyData: true #45

Merged
merged 1 commit into from May 13, 2022
Merged

Change to LazyData: true #45

merged 1 commit into from May 13, 2022

Conversation

juliasilge
Copy link
Member

Closes #44

This type of syntax (which I have used in materials, packages, etc) now works:

modeldata::penguins
#> # A tibble: 344 × 7
#>    species island    bill_length_mm bill_depth_mm flipper_length_mm body_mass_g
#>    <fct>   <fct>              <dbl>         <dbl>             <int>       <int>
#>  1 Adelie  Torgersen           39.1          18.7               181        3750
#>  2 Adelie  Torgersen           39.5          17.4               186        3800
#>  3 Adelie  Torgersen           40.3          18                 195        3250
#>  4 Adelie  Torgersen           NA            NA                  NA          NA
#>  5 Adelie  Torgersen           36.7          19.3               193        3450
#>  6 Adelie  Torgersen           39.3          20.6               190        3650
#>  7 Adelie  Torgersen           38.9          17.8               181        3625
#>  8 Adelie  Torgersen           39.2          19.6               195        4675
#>  9 Adelie  Torgersen           34.1          18.1               193        3475
#> 10 Adelie  Torgersen           42            20.2               190        4250
#> # … with 334 more rows, and 1 more variable: sex <fct>

Created on 2022-05-12 by the reprex package (v2.0.1)

I think this is a good idea, because then folks don't have all these datasets in memory until they use one. I had to set something for LazyDataCompression in DESCRIPTION, which seems weird because I don't have that in any of my other R packages. If I don't set that, I still see the LazyData DB of 5.2 MB without LazyDataCompression set warning.

@topepo topepo merged commit 82e3320 into main May 13, 2022
@juliasilge juliasilge deleted the lazy-data branch May 13, 2022 14:21
@github-actions
Copy link

This pull request 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.

@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't access to data sets using ::
2 participants