-
Notifications
You must be signed in to change notification settings - Fork 10
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
unexpected behaviour for metadata with NULL or NA content #203
Comments
Thanks for reporting. We have a helper function It's probably better to extend this line: With the properties |
Using |
This indeed seems a good solution: now it is |
When adding a metadata item without content (e.g. because all other tables or columns have content for this metadata item), writing and reading the package alters this content:
NA
becomesNULL
, andNULL
becomesNamed list()
, and also the writtendatapackage.json
is different. I don't mind the distinction between NA or NULL, so I don't mind if they would be saved and reloaded as the same value (or not at all), but I find annoying that the written file changes when first giving the metadata value NA (which is kind of a default given by functions in R if no data are available).The reprex demonstrates the issue for metadata on the table level, but metadata on the column level behave similar.
Created on 2024-04-16 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: