Skip to content

vec_order_base() returns incorrect results with 0-col data frames  #1499

@DavisVaughan

Description

@DavisVaughan

This is using CRAN vctrs, where we still called this vec_order(). Noticed here tidyverse/dplyr#6093 (comment)

library(vctrs)

df <- new_data_frame(n = 5L)

# Should return c(1, 2, 3, 4, 5)
vec_order(df)
#> NULL

Created on 2021-11-18 by the reprex package (v2.0.1)

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