Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with label named 'x' #45

Open
3 of 4 tasks
TimTaylor opened this issue Oct 8, 2024 · 1 comment
Open
3 of 4 tasks

Errors with label named 'x' #45

TimTaylor opened this issue Oct 8, 2024 · 1 comment

Comments

@TimTaylor
Copy link

Please place an "x" in all the boxes that apply

  • I have the most recent version of this package and R
  • I have found a bug
  • I have a reproducible example
  • I want to request a new feature

It doesn't seem like you can currently have labels named 'x'

library(datatagr)
#> 
#> Attaching package: 'datatagr'
#> The following object is masked from 'package:base':
#> 
#>     labels
x <- data.frame(x = 1)
make_datatagr(x, x = "bob")
#> Error in make_datatagr(x, x = "bob"): Assertion on 'x' failed: Must be of type 'data.frame', not 'character'.

Created on 2024-10-08 with reprex v2.1.1


@Bisaloo
Copy link
Member

Bisaloo commented Oct 8, 2024

Sticking with .data may be the best option to also improve interoperability / consistency with the tidyverse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants