Skip to content

Mangling of duplicated colnames in data frames resulting from a query breaks Bioconductor packages #259

Description

@hpages

Hi,

We just released BioC 3.7 a few days ago (on May 1st) and several packages broke already because of this change in RSQLite 2.1.1:

Data frames resulting from a query always have unique non-empty column names (r-dbi/DBItest#137).

I see that the issue was discussed here r-dbi/DBItest#137

It's a little bit disappointing that this kind of breaking changes are made without more consideration for the existing packages. If only it was an improvement but name mangling has always proven to be an annoyance more than anything else. Furthermore, the fact that RSQLite uses its own mangling (via internal helper tidy_names) instead of base::make.names() adds another layer of inconsistency and confusion.

Could this at least be made optional e.g. via a new argument to dbGetQuery and dbFetch (and possibly to a few other functions)? Or is there an easy and robust way to bring the original names back if one wishes to (removing the ..n suffix is not robust). Thanks!

H.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions