Skip to content

Commit

Permalink
Update xplot_helpers.R
Browse files Browse the repository at this point in the history
use `select_at()` instead of `select()`. related to UUPharmacometrics#125
  • Loading branch information
romainfrancois authored Dec 20, 2018
1 parent 228b858 commit 5d4731d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/xplot_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ drop_fixed_cols <- function(xpdb, .problem, cols, quiet) {

# Get the column names to be removed
cols_rm <- get_data(xpdb, .problem = .problem) %>%
dplyr::select_(.dots = cols) %>%
dplyr::select_at(cols) %>%
dplyr::select_if(.predicate = function(x) length(unique(x)) == 1) %>%
colnames()
if (length(cols_rm) == 0) return(cols)
Expand Down

0 comments on commit 5d4731d

Please sign in to comment.