Skip to content

nrow should be optional if input is a data frame #781

@lionel-

Description

@lionel-

Makes things more complex for the df case:

new_gbif <- function(x) {
  stopifnot(is.data.frame(x))

  tibble::new_tibble(
    out,
    nrow = nrow(out),  # Redundant
    class = "gbif"
  )
}

This behaviour would be consistent with vctrs::new_data_frame().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions