Skip to content

Dev/metadata#26

Merged
bnowok merged 31 commits into
mainfrom
dev/metadata
May 6, 2026
Merged

Dev/metadata#26
bnowok merged 31 commits into
mainfrom
dev/metadata

Conversation

@Nic-Chr

@Nic-Chr Nic-Chr commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

Added metadata functionality to get_spd().

@Nic-Chr Nic-Chr requested a review from Moohan August 29, 2025 10:36

@Moohan Moohan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well for me.

Most suggestions are around the messages and warnings in the console.

Comment thread R/get_spd.R Outdated
Comment thread R/get_spd.R Outdated
Comment thread R/get_spd.R
Comment thread R/get_spd.R Outdated
Comment thread R/metadata.R Outdated
Comment thread R/metadata.R Outdated
@Moohan Moohan linked an issue Oct 2, 2025 that may be closed by this pull request
@Nic-Chr Nic-Chr requested a review from Moohan March 9, 2026 13:29
Nic-Chr and others added 8 commits March 9, 2026 13:30
The progress message was being printed to the console as `0s` or `1s`, not required and potentially confusing.

CSV lazy reading is fine if the user is on UNIX (linux/mac), it's only not good when on Windows, so limit it to that. This should make reading CSV files (metadata + some of the older lookups) faster on Posit Workbench.
Moohan and others added 4 commits May 1, 2026 13:28
This offloads metadata loading to the first call of `metadata()`. When the lookup is loaded, it sets some attributes, such as where the metadata file is and whether it exists, but it's not loaded initially.

Overall, I think this is a better approach. The only downside is I couldn't figure out a good way to partially print the top few rows of the metadata, as that (obviously) involves reading it.
…load

Refactor to make loading the metadata be on demand
@bnowok bnowok self-requested a review May 6, 2026 14:57

@bnowok bnowok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some changes to the wording only

@bnowok bnowok merged commit 76fead3 into main May 6, 2026
1 check passed
@bnowok bnowok deleted the dev/metadata branch May 6, 2026 16:19
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

Successfully merging this pull request may close these issues.

Include metadata as a package object

3 participants