Skip to content

Commit

Permalink
infer class only returns first class
Browse files Browse the repository at this point in the history
  • Loading branch information
toppyy committed Nov 2, 2024
1 parent 6310010 commit 3bd3b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/translate.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ infer_class_of_expr <- function(expr, names_data, classes_data) {
if (typeof(expr) == "symbol" && as.character(expr) %in% names_data) {
return(classes_data[which(as.character(expr) == names_data)][[1]])
}
return(class(expr))
return(class(expr)[[1]])
}

classes_are_comparable <- function(left, right) {
Expand Down

0 comments on commit 3bd3b70

Please sign in to comment.