materialize {dm} | R Documentation |
compute()
materializes all tables in a dm
to new (temporary or permanent)
tables on the database.
collect()
downloads the tables in a dm
object as local tibbles.
## S3 method for class 'dm'
compute(x, ...)
## S3 method for class 'dm'
collect(x, ..., progress = NA)
x |
A |
... |
Passed on to |
progress |
Whether to display a progress bar, if |
Called on a dm
object, these methods create a copy of all tables in the dm
.
Depending on the size of your data this may take a long time.
A dm
object of the same structure as the input.
financial <- dm_financial_sqlite()
financial %>%
pull_tbl(districts) %>%
dbplyr::remote_name()
# compute() copies the data to new tables:
financial %>%
compute() %>%
pull_tbl(districts) %>%
dbplyr::remote_name()
# collect() returns a local dm:
financial %>%
collect() %>%
pull_tbl(districts) %>%
class()