Skip to content

Commit 2c49b03

Browse files
committed
Make default_vars specified with tplyr_table work
1 parent 322c91a commit 2c49b03

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: dv.listings
22
Type: Package
33
Title: Data listings module
4-
Version: 4.1.0-901
4+
Version: 4.1.1-9003
55
Authors@R:
66
c(
77
person("Boehringer-Ingelheim Pharma GmbH & Co.KG", role = c("cph", "fnd")),

R/helpers.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ fill_default_vars <- function(default_vars, dataset) {
111111
}
112112
return(cols)
113113
})
114+
115+
# only added so that the default_vars specified with tplyr_table module work
116+
not_used_defaults <- !names(default_vars) %in% names(col_list)
117+
if (any(not_used_defaults)) {
118+
col_list <- append(col_list, default_vars[not_used_defaults])
119+
}
114120

115121
return(col_list)
116122
}

0 commit comments

Comments
 (0)