Skip to content

Commit

Permalink
forgot both needed to be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
statasaurus committed Jan 7, 2022
1 parent 29bc3ca commit 9911d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/metacore.R
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ select_dataset <- function(.data, dataset, simplify = FALSE) {
get_control_term <- function(metacode, variable, dataset = NULL){
var_str <- ifelse(mode(enexpr(variable)) == "character",
variable, as_label(enexpr(variable)))
dataset_val <- ifelse(class(enexpr(dataset)) == "character",
dataset_val <- ifelse(mode(enexpr(dataset)) == "character",
dataset, as_label(enexpr(dataset))) # to make the filter more explicit
if(dataset_val == "NULL"){
var_code_id <- metacode$value_spec %>%
Expand Down

0 comments on commit 9911d8a

Please sign in to comment.