-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
the error...
> purrr::map2(
+ .x = short,
+ .y = colnames(short),
+ .f = attributes_to_yaml
+ )
Error in `purrr::map2()`:
ℹ In index: 1.
ℹ With name: presence_of_subterranean_water.
Caused by error in `.f()`:
! dataframe has a variable for which the class could not be determined
Run `rlang::last_trace()` to see where the error occurred.
where it gets stuck...
} else {
stop("dataframe has a variable for which the class could not be determined")
}
I encountered this when a data frame column was type logical. I am not sure there is a programmatic way to address this since there is not a way to know what the column actually reflects. I think best would be to add a message in the stop() that the error could be caused by a type logical and that the user should check the data frame for that column type.
Something to address in a future update.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels