@@ -81,7 +81,7 @@ dm <- function(...,
81
81
dm_tbl <- dm_impl(dots [! is_dm ], names(quos_auto_name(quos [! is_dm ])))
82
82
def <- dm_bind_impl(c(dots [is_dm ], list (dm_tbl )), .name_repair , .quiet , repair_arg = " " )
83
83
84
- dm <- new_dm3 (def )
84
+ dm <- dm_from_def (def )
85
85
dm_validate(dm )
86
86
dm
87
87
}
@@ -126,7 +126,7 @@ dm_impl <- function(tbls, names) {
126
126
# ' @export
127
127
new_dm <- function (tables = list ()) {
128
128
def <- new_keyed_dm_def(tables )
129
- new_dm3 (def )
129
+ dm_from_def (def )
130
130
}
131
131
132
132
new_keyed_dm_def <- function (tables = list ()) {
@@ -182,7 +182,7 @@ new_dm_def <- function(tables = list(),
182
182
def
183
183
}
184
184
185
- new_dm3 <- function (def , zoomed = FALSE , validate = TRUE ) {
185
+ dm_from_def <- function (def , zoomed = FALSE , validate = TRUE ) {
186
186
if (is.null(def [[" uuid" ]])) {
187
187
def $ uuid <- vec_new_uuid_along(def $ table )
188
188
} else {
@@ -697,7 +697,7 @@ compute.dm <- function(x, ...) {
697
697
dm_apply_filters_impl() %> %
698
698
dm_get_def() %> %
699
699
mutate(data = map(data , compute , ... )) %> %
700
- new_dm3 ()
700
+ dm_from_def ()
701
701
}
702
702
703
703
# ' Materialize
@@ -716,7 +716,7 @@ collect.dm <- function(x, ..., progress = NA) {
716
716
717
717
ticker <- new_ticker(" downloading data" , nrow(def ), progress = progress )
718
718
def $ data <- map(def $ data , ticker(collect ), ... )
719
- new_dm3 (def , zoomed = is_zoomed(x ))
719
+ dm_from_def (def , zoomed = is_zoomed(x ))
720
720
}
721
721
722
722
# ' @export
@@ -758,7 +758,7 @@ tbl_vars.dm_zoomed <- function(x) {
758
758
dm_reset_all_filters <- function (dm ) {
759
759
def <- dm_get_def(dm )
760
760
def $ filters <- list_of(new_filter())
761
- new_dm3 (def )
761
+ dm_from_def (def )
762
762
}
763
763
764
764
all_same_source <- function (tables ) {
@@ -769,7 +769,7 @@ all_same_source <- function(tables) {
769
769
770
770
# creates an empty `dm`-object, `src` is defined by implementation of `dm_get_src_impl()`.
771
771
empty_dm <- function () {
772
- new_dm3 (
772
+ dm_from_def (
773
773
tibble(
774
774
table = character (),
775
775
data = list (),
0 commit comments