rstudio / pins-r

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

Document using environment variables with pins on RStudio Connect #457

Closed pyltime closed 3 years ago

pyltime commented 3 years ago

The docs for using pins with RStudio Connect here: https://pins.rstudio.com/articles/boards-rsconnect.html are great, but don't cover what you should do if your pin needs access to environment variables for API keys, etc. This trips up users frequently since it's fairly different from how content, including our examples, work when running outside of Connect. It would be great to include a section for this, perhaps taking from our guide to using env variables with Connect here: https://db.rstudio.com/best-practices/deployment/#credentials-inside-environment-variables-in-rstudio-connect

hadley commented 3 years ago

Do you mean keys for board_rsconnect() itself?

hadley commented 3 years ago

(BTW the docs for this in the dev version of pins are at https://pins.rstudio.com/dev/reference/board_rsconnect.html).

hadley commented 3 years ago

Not sure if this fixes your issue or not, but I just totally rewrote the vignette to be simpler and to explain that with RSC 1.8.8 you don't need to set any env vars to publish a pin. Let me know if you think it needs more info than that.

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.