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

append() drops custom datapackage class #198

Open
2 tasks
peterdesmet opened this issue Mar 27, 2024 · 0 comments
Open
2 tasks

append() drops custom datapackage class #198

peterdesmet opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working complexity:low Likely not complex to implement

Comments

@peterdesmet
Copy link
Member

peterdesmet commented Mar 27, 2024

When using append(), the datapackage lists looses its custom class:

library(frictionless)
p <- create_package()
class(p)
#> [1] "datapackage" "list"
p <- append(p, c(foo = "bar"))
class(p)
#> [1] "list"

Created on 2024-03-27 with reprex v2.1.0

This results in check_package() warnings like in #194. I assume the way to solve this is by creating a append.datapackage() function.

To update:

@peterdesmet peterdesmet added the bug Something isn't working label Mar 27, 2024
@peterdesmet peterdesmet added the complexity:low Likely not complex to implement label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complexity:low Likely not complex to implement
Projects
None yet
Development

No branches or pull requests

1 participant