Skip to content

Breaking change in nth() for S4 input #6670

Description

@MichaelChirico

We have some code using dplyr::first() on an S4 input that's broken by the change to 1.1.0.

I don't see this mentioned in the NEWS, so I'm filing this bug in case it's unintentional / to find workarounds.

minimal-ish Reprex:

library(RProtoBuf)
example("asMessage", package="RProtoBuf")

x = asMessage( tutorial.Person )

## before 1.1.0
dplyr::first(x)
# [1] "Person"
## after 1.1.0
dplyr::first(x)
# Error in vec_size(x) : `x` must be a vector, not a <Message> object.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions