rstudio / pins-r

Pin, Discover and Share Resources
https://pins.rstudio.com
Other
301 stars 62 forks source link

Use pin_read() without username #750

Closed moturoa closed 1 year ago

moturoa commented 1 year ago

I would like to make a pin "globally" available to all shiny apps on our posit connect server, regardless of the user who wrote it.

Now:

pin_write(board, mydata, "my_global_data")
data <- pin_read(board, "myusername/my_global_data")

Is it possible to read "my_global_data" regardless of who wrote the pin?

juliasilge commented 1 year ago

Yes! You can do this by setting a vanity URL for your pin on Connect: https://docs.posit.co/connect/user/content-settings/#custom-url And then having folks read your pin with board_connect_url(): https://pins.rstudio.com/reference/board_connect_url.html

That type of board can only be used for reading and can only read the latest version. You can read a bit more about it in our latest blog post.

juliasilge commented 1 year ago

Let us know if you have further questions! 🙌

github-actions[bot] commented 1 year 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.