Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19 +/- ##
==========================================
- Coverage 99.56% 99.48% -0.09%
==========================================
Files 9 9
Lines 919 962 +43
==========================================
+ Hits 915 957 +42
- Misses 4 5 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds opt-in metadata capture when exporting gridifyClass objects.
New metadata argument on export_to() accepting "none" (default), "sidecar", or "embed", resolved via match.arg().
"sidecar" — writes .json next to the output with the set_cell() text values.
"embed" — embeds the JSON payload in the PDF /Title field (PDF only; skipped if the user supplied their own title).
"none" — disables both.
Project-wide default can be set via options(gridify.export.metadata = "sidecar"); resolution layered as explicit arg → option → "none", all funneled through resolve_export_metadata().
Works for single objects and lists (multi-page PDFs emit one merged JSON array).
Internal helpers in gridify-utils.R: gridify_metadata(), gridify_to_json() (thin jsonlite::toJSON wrapper), write_metadata_sidecar(), all @Keywords internal and unit-tested.
Adds jsonlite to Imports. Vignettes (simple_examples, multi_page_examples) and NEWS.md updated.
Fully backwards-compatible: default behaviour writes the same single file as before.Adds opt-in metadata capture when exporting gridifyClass objects.
New metadata argument on export_to() accepting "none" (default), "sidecar", or "embed", resolved via match.arg().
"sidecar" — writes .json next to the output with the set_cell() text values.
"embed" — embeds the JSON payload in the PDF /Title field (PDF only; skipped if the user supplied their own title).
"none" — disables both.
Project-wide default can be set via options(gridify.export.metadata = "sidecar"); resolution layered as explicit arg → option → "none", all funneled through resolve_export_metadata().
Works for single objects and lists (multi-page PDFs emit one merged JSON array).
Internal helpers in gridify-utils.R: gridify_metadata(), gridify_to_json() (thin jsonlite::toJSON wrapper), write_metadata_sidecar(), all @Keywords internal and unit-tested.
Adds jsonlite to Imports. Vignettes (simple_examples, multi_page_examples) and NEWS.md updated.
Fully backwards-compatible: default behaviour writes the same single file as before.