-
Notifications
You must be signed in to change notification settings - Fork 2
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
Indicate if extracted metadata is local or not #190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, have a suggestion that if possible might be nicer
R/outpack_tools.R
Outdated
if (isTRUE(allow_remote) || length(location) > 0) { | ||
ret$local <- ids %in% root$index$unpacked() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local boolean is good, but do we not have any way of having a "location" column too that has "local" as a special value and the name of other locations? i can imagine users potentially wanting info about what remote location a packet is in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree that this would be nicer....but as packets can be found at multiple locations it's awkward as we have to return a list column. If we think that's worth it it's very easy to add, but they're a bit of a pain to use imo (we do return them liberally elsewhere in this function though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think this is worthwhile and have done it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks LGTM!
More from Jeff's request in #156 - an indication of metadata refers to a packet available locally.