Skip to content

logical datatype not supported by write_attributes #60

@srearl

Description

@srearl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions