Skip to content

Find long-term solution to as_tibble.epi_df #51

@dshemetov

Description

@dshemetov

As Logan and I found in #49, care must be taken with how we write as_tibble.epi_df.

The tradeoffs are as follows:

  • if as_tibble.epi_df doesn't remove metadata, then it doesn't actually convert the class to a tibble, which causes an infinite loop inside dplyr::dplyr_col_modify
    • furthermore, it's confusing design to have a function named as_tibble not actually return a tibble
  • if as_tibble.epi_df does remove metadata, then we have the issue of losing epi_df information every time we use, for instance, epi_df %>% group_by() %>% mutate()

Possible solutions are:

  • find where dplyr uses as_tibble, e.g. mutate and add S3 alternatives for those
  • ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions