rstudio / pins-r

Pin, discover, and share resources
https://pins.rstudio.com
Other
312 stars 63 forks source link

pin_info() does not make it clear when multiple pins with name exist #418

Closed loomalaine closed 3 years ago

loomalaine commented 3 years ago

If there are two pins (pinned by different users) with the same name, pin_info() only returns info on one of them. This seems misleading. Alternatively, if I use connectapi::get_content() I can see that there are two pins with the same name.

hadley commented 3 years ago

The problem is that pin_info() is started from pin_find() rather than using the same code path as pin_get(). I think I will resolve this by introducing a new pin_metadata(board, name) (which also resolves the argument order problem).

hadley commented 3 years ago

I don't really understand the pin_info() interface at all — I think pin_meta() should be easier to use, but please let me know if I've missed anything.

github-actions[bot] commented 2 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.